From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to specify customized configuration file rather than"~/.emacs" ?
Date: Sat, 15 Sep 2012 16:05:55 +0200 [thread overview]
Message-ID: <20120915140555.GK32461@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <35CB8E5F809A4C17A05E8F1ADEA0146D@us.oracle.com>
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.
next prev parent reply other threads:[~2012-09-15 14:05 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
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 [this message]
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=20120915140555.GK32461@kuru.dyndns-at-home.com \
--to=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.