all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maarten Bergvelt <bergv@math.uiuc.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: change location of .emacs
Date: Wed, 21 Feb 2007 19:33:03 +0000 (UTC)	[thread overview]
Message-ID: <slrnetp7jf.d0r.bergv@bolmikolke.math.uiuc.edu> (raw)
In-Reply-To: mailman.4858.1172085400.2155.help-gnu-emacs@gnu.org

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		

  parent reply	other threads:[~2007-02-21 19:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-21 16:49 change location of .emacs Hadron
2007-02-21 17:05 ` Maarten Bergvelt
2007-02-21 17:20   ` Hadron
2007-02-21 17:36     ` Maarten Bergvelt
2007-02-21 19:16   ` Eli Zaretskii
     [not found]   ` <mailman.4858.1172085400.2155.help-gnu-emacs@gnu.org>
2007-02-21 19:33     ` Maarten Bergvelt [this message]
2007-02-22  4:26       ` Eli Zaretskii

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=slrnetp7jf.d0r.bergv@bolmikolke.math.uiuc.edu \
    --to=bergv@math.uiuc.edu \
    --cc=bergv@uiuc.edu \
    --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.