help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to specify customized configuration file rather than "~/.emacs"


From: Vineet Naik
Subject: Re: How to specify customized configuration file rather than "~/.emacs" ?
Date: Thu, 13 Sep 2012 19:33:55 +0530

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]