[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to specify customized configuration file rather than "~/.emacs"
Re: How to specify customized configuration file rather than "~/.emacs" ?
Thu, 13 Sep 2012 08:27:46 -0700
On Thu, Sep 13, 2012 at 7:38 AM, Suvayu Ali <email@example.com> wrote:
> On Thu, Sep 13, 2012 at 07:42:59PM +0530, Jambunathan K wrote:
>> Z C <firstname.lastname@example.org> 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
> $ 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
Gehm's Corollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.