Richard Kim <emac...@gmail.com> writes:

> Karthik Chikmagalur <karthikchikmaga...@gmail.com> writes:
>
>> I can get it to work with emacs -Q as well, and this is good for testing, 
>> thank you.
>>
>> But I'm looking for a way to retain the rest of my configuration and swap out
>> Org as required. Otherwise I can't do any interactive development. Another
>> alternative is to set up a completely different init directory and run Emacs
>> with a chemacs2 profile or with the new --init-directory flag, but 
>> considering
>> the complexity/size of my configuration this would be onerous.
>
> How about specifying org version of your choice on command line like this?
>
>     emacs --eval "(add-to-list 'load-path \"/path/to/org\")"
>
> So long as you don't activate another org mode package within your
> start-up files, above should work I think.

If you want to better control where your org path end up in load-path,
then you can use one of several hooks, e.g., following delays updating
load-path till almost the very end of emacs startup process

    emacs --eval "(add-hook 'emacs-startup-hook (lambda () (add-to-list 
'load-path \"/path/to/org\")) 100)"

See [[info:elisp#Startup Summary]] for emacs startup details.


Reply via email to