From: PJ Weisberg <pj@irregularexpressions.net>
To: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to specify customized configuration file rather than "~/.emacs" ?
Date: Thu, 13 Sep 2012 08:27:46 -0700 [thread overview]
Message-ID: <CAJsNXTk3ncQJkhi2+Qu31PSvxb73jxiwwDOdESq0u1reXJ4_0A@mail.gmail.com> (raw)
In-Reply-To: <20120913143835.GE32461@kuru.dyndns-at-home.com>
On Thu, Sep 13, 2012 at 7:38 AM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> On Thu, Sep 13, 2012 at 07:42:59PM +0530, Jambunathan K wrote:
>> Z C <zcnnbb@gmail.com> writes:
>>
>> > 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.
>> >
>>
>> Load emacs with custom options.
>>
>> ,----
>> | $ emacs --help | grep load
>> |
>> | --no-desktop do not load a saved desktop
>> | --no-init-file, -q load neither ~/.emacs nor default.el
>> | --no-site-file do not load site-start.el
>> | --user, -u USER load ~USER/.emacs instead of your own
>> | --directory, -L DIR add DIR to variable load-path
>> | --load, -l FILE load Emacs Lisp FILE using the load function
>> `----
>>
>
> To elaborate with an example:
>
> $ emacs -q -l ~/special-config.el
>
> or,
>
> $ emacs -Q -l ~/special-config.el
You'll probably also want to put (setq user-init-file
"~/special-config.el") in that file, or Emacs will refuse to save
customizations
-PJ
Gehm's Corollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.
next prev parent reply other threads:[~2012-09-13 15:27 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
2012-09-13 14:12 ` Jambunathan K
2012-09-13 14:38 ` Suvayu Ali
2012-09-13 15:27 ` PJ Weisberg [this message]
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=CAJsNXTk3ncQJkhi2+Qu31PSvxb73jxiwwDOdESq0u1reXJ4_0A@mail.gmail.com \
--to=pj@irregularexpressions.net \
--cc=fatkasuvayu+linux@gmail.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.
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.