[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: change location of .emacs
From: |
Eli Zaretskii |
Subject: |
Re: change location of .emacs |
Date: |
Wed, 21 Feb 2007 21:16:34 +0200 |
> From: Maarten Bergvelt <bergv@math.uiuc.edu>
> Date: Wed, 21 Feb 2007 17:05:12 +0000 (UTC)
>
> In article <871wkjpiaz.fsf@gmail.com>, Hadron wrote:
> >
> > A quick google shows me I can change the "user" with -u to pick up that
> > users .emacs, but how to just say I want MY ".emacs" which is in another
> > directory? I wish to keep my .emacs in my "lisp" directory and tell
> > emacs about it on the command line. Possible?
>
> To learn about emacs maybe not google but read the documentation? See
> command line arguments section in the manual, you seem to be looking
> for
> emacs -q -l lispdirectory/your.emacs.file
This suggestion could have surprising effects, as loading .emacs via
the -l switch is subtly different from what Emacs does when it finds
.emacs in the user's home directory.
To the OP: I suggest to put a one-line .emacs in your HOME directory
that says this:
(load "your.lisp.directory/your.emacs.file")