From: Vineet Naik <naikvin@gmail.com>
To: Z C <zcnnbb@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to specify customized configuration file rather than "~/.emacs" ?
Date: Thu, 13 Sep 2012 19:33:55 +0530 [thread overview]
Message-ID: <CADmbCiPE8hW36PQgQ70Ao9PPu8k=-iLdTEDHqo32MKSnsi5MJg@mail.gmail.com> (raw)
In-Reply-To: <CAD=SU=eEnjpQQ9rSQMzbrrhcqWNYYsPha5MVTsXreoC1MJqutw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]
On Thu, Sep 13, 2012 at 7:13 PM, Z C <zcnnbb@gmail.com> wrote:
> I just want emacs to load another file as the configuration file, and
> ignore the default file ("~/.emacs").
>
> Note that I don't want to change the original "~/.emacs" file.
>
> I've tried to change "$HOME" env variable, but it doesn't work.
>
If you mean you want to have emacs save the customization settings into
some other file, then
you need to add this code to ~/.emacs
(setq custom-file "~/.emacs-custom.el")
(load custom-file)
More info here:
http://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Customizations.html
HTH.
Regards,
Vineet
[-- Attachment #2: Type: text/html, Size: 1233 bytes --]
next prev parent reply other threads:[~2012-09-13 14:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-13 13:43 How to specify customized configuration file rather than "~/.emacs" ? Z C
2012-09-13 14:03 ` Vineet Naik [this message]
2012-09-13 14:12 ` Jambunathan K
2012-09-13 14:38 ` Suvayu Ali
2012-09-13 15:27 ` PJ Weisberg
2012-09-13 16:04 ` How to specify customized configuration file rather than"~/.emacs" ? Drew Adams
2012-09-14 15:29 ` How to specify customized configuration file rather than "~/.emacs" ? Z C
2012-09-14 16:02 ` How to specify customized configuration file rather than"~/.emacs" ? Drew Adams
2012-09-15 14:05 ` Suvayu Ali
2012-09-14 20:01 ` How to specify customized configuration file rather than "~/.emacs" ? Peter Dyballa
[not found] <mailman.8775.1347543860.855.help-gnu-emacs@gnu.org>
2012-09-13 14:42 ` Pascal J. Bourguignon
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='CADmbCiPE8hW36PQgQ70Ao9PPu8k=-iLdTEDHqo32MKSnsi5MJg@mail.gmail.com' \
--to=naikvin@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=zcnnbb@gmail.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.