help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to have two parallel emacs environments?


From: Guido Van Hoecke
Subject: Re: How to have two parallel emacs environments?
Date: Tue, 25 Mar 2014 17:05:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Hi Pacal,

"Pascal J. Bourguignon" <pjb@informatimago.com> writes:

> Luca Ferrari <fluca1978@infinito.it> writes:
>
>> On Mon, Mar 24, 2014 at 11:54 PM, Michael Heerdegen
>> <michael_heerdegen@web.de> wrote:
>>> Guido Van Hoecke <guivho@gmail.com> writes:
>>>
>>>> Is there any way to launch an emacs with a specific init file?
>>>
>>> I would do emacs -q -l /path/to/init-file
>>>
>>
>> Also the -u option could be an option to specify a per-user init file.
>> Or specifying a switch-function to call on startup in order to
>> configure the whole editor differently?
>
>
> If you load different configurations from ~/.emacs, you may want to set
> custom-file to tell emacs where to store the customizations.
>
> For example, I have this in my ~/.emacs:
>
> ;; […]
> (let ((configuration (find-configuration (hostname))))
>   (if configuration
>       (let ((file (file-truename (cdr configuration))))
>         (load file)
>         ;; setting custom-file needs to be done after we've customized our 
> stuff
>         ;; otherwise it may be overridden with an empty customization.
>         (setq custom-file (or file custom-file)))
>       (message "Found no configuration to load for %s" (hostname))))

One more for my setup files :)

Thanks.


Guido

--
Laughter is the closest distance between two people.
                -- Victor Borge



reply via email to

[Prev in Thread] Current Thread [Next in Thread]