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: Suvayu Ali
Subject: Re: How to specify customized configuration file rather than"~/.emacs" ?
Date: Sat, 15 Sep 2012 16:05:55 +0200
User-agent: Mutt/1.5.21 (2011-07-01)

Hi,

On Fri, Sep 14, 2012 at 09:02:09AM -0700, Drew Adams wrote:
>  
> > What I specifically need is that, let emacs treat another
> > file as the "~/.emacs" file.
> >
> > This file should behaves EXACTLY as "~/.emacs" except that
> > they have different file name.
> >
> > That means, if I click Options -> Save Options, emacs
> > would write changes to this specific file.
> 
> No, the last two sentences do not say the same thing.
> 
> If you want what you say in the second sentence, then use option 
> `custome-file',
> as I said before.  Then just put (load-file custom-file) in your .emacs.
> 
> This way, you still have your .emacs file for any non-Customize customizations
> you might want to make.  And you can choose at which point in your .emacs you
> want to load the customizations provided by Customize, by placing (load-file
> custom-file) wherever you want.
> 
> Please read the Emacs manual about `custom-file':
> 
> C-h r
> i custom-file
> 

To add an example to what Drew said; you can look at my init file here:

<https://github.com/suvayu/.emacs.d/blob/master/init.el#L29>

Hope this helps.

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

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