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

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

Re: change location of .emacs


From: Maarten Bergvelt
Subject: Re: change location of .emacs
Date: Wed, 21 Feb 2007 19:33:03 +0000 (UTC)
User-agent: slrn/0.9.7.4 (Linux)

In article <mailman.4858.1172085400.2155.help-gnu-emacs@gnu.org>, 
Eli Zaretskii wrote:
>> 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.

Hm, I didn't realize this. What can go wrong?

> 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")

Well, the OP didn't want to have a .emacs in his home directory, if I
understood him correctly.

-- 
Maarten Bergvelt                


reply via email to

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