From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maarten Bergvelt Newsgroups: gmane.emacs.help Subject: Re: change location of .emacs Date: Wed, 21 Feb 2007 19:33:03 +0000 (UTC) Organization: Department of Mathematics, UIUC. Message-ID: References: <871wkjpiaz.fsf@gmail.com> Reply-To: bergv@uiuc.edu NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1172086953 29804 80.91.229.12 (21 Feb 2007 19:42:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Feb 2007 19:42:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 21 20:42:32 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HJxMD-0006V0-Ca for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Feb 2007 20:42:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJxMC-00086V-TQ for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Feb 2007 14:42:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!news.ks.uiuc.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: bolmikolke.math.uiuc.edu Original-X-Trace: news.ks.uiuc.edu 1172086383 8955 130.126.108.244 (21 Feb 2007 19:33:03 GMT) Original-X-Complaints-To: news+abuse@ks.uiuc.edu Original-NNTP-Posting-Date: Wed, 21 Feb 2007 19:33:03 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:145785 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41389 Archived-At: In article , Eli Zaretskii wrote: >> From: Maarten Bergvelt >> 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