all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Guido Van Hoecke <guivho@gmail.com>
To: "Pascal J. Bourguignon" <pjb@informatimago.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to have two parallel emacs environments?
Date: Tue, 25 Mar 2014 17:05:54 +0100	[thread overview]
Message-ID: <m2wqfimffh.fsf@gmail.com> (raw)
In-Reply-To: <87txamiglv.fsf@kuiper.lan.informatimago.com> (Pascal J. Bourguignon's message of "Tue, 25 Mar 2014 13:54:04 +0100")

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	other threads:[~2014-03-25 16:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24 22:46 How to have two parallel emacs environments? Guido Van Hoecke
2014-03-24 22:54 ` Michael Heerdegen
2014-03-24 23:02   ` Guido Van Hoecke
2014-03-25 12:41   ` Luca Ferrari
     [not found]   ` <mailman.18153.1395751287.10748.help-gnu-emacs@gnu.org>
2014-03-25 12:54     ` Pascal J. Bourguignon
2014-03-25 16:05       ` Guido Van Hoecke [this message]
2014-03-25 17:57 ` Nicolas Richard
2014-03-25 20:08   ` Guido Van Hoecke
2014-03-27  7:52     ` Luca Ferrari
2014-03-27 10:45       ` Guido Van Hoecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wqfimffh.fsf@gmail.com \
    --to=guivho@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pjb@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.