|
From: | Jonathan Leech-Pepin |
Subject: | Re: [O] Moving my init.el to Org |
Date: | Tue, 2 Sep 2014 08:52:28 -0400 |
Rainer M Krug <address@hidden> writes:How about something like this:
> Oleh <address@hidden> writes:
>
>>> I know that I could use org-babel-load-file, or outshine. What are
>>> other possibilities? What are the caveats (and advantages) of both
>>> (other?) ways?
>>
>> I'm using a one .el file per mode approach, with around 4000 lines
>> split into 40 files.
>>
>> This approach simplifies things a lot: for instance I haven't touched
>> _javascript_ in ages, but all my customizations for it are sitting in
>> _javascript_.el without getting in the way of the stuff that I'm using
>> now. They aren't even loaded unless I open a js file.
>
> Interesting - is your configuration online, so that one could take a
> look at it? I did not find them on your github page?
>
> Or how do you do it, that the e.g. _javascript_.el is only loaded when a
> js file is opened? Because this is exactly what I would like to have.
(with-eval-after-load 'js-mode (load "_javascript_.el"))
Use eval-after-load if you are using an older Emacs. Note I don't
know if there's anything called js-mode. . .
[Prev in Thread] | Current Thread | [Next in Thread] |