From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to have two parallel emacs environments?
Date: Tue, 25 Mar 2014 13:54:04 +0100 [thread overview]
Message-ID: <87txamiglv.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.18153.1395751287.10748.help-gnu-emacs@gnu.org
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))))
--
__Pascal Bourguignon__
http://www.informatimago.com/
"Le mercure monte ? C'est le moment d'acheter !"
next prev parent reply other threads:[~2014-03-25 12:54 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 [this message]
2014-03-25 16:05 ` Guido Van Hoecke
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txamiglv.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).