From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: change location of .emacs Date: Wed, 21 Feb 2007 21:16:34 +0200 Message-ID: References: <871wkjpiaz.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1172085419 24035 80.91.229.12 (21 Feb 2007 19:16:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Feb 2007 19:16:59 +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:16:54 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 1HJwxO-0002m4-II for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Feb 2007 20:16:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJwxO-0003FJ-1m for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Feb 2007 14:16:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJwxC-0003F3-N1 for help-gnu-emacs@gnu.org; Wed, 21 Feb 2007 14:16:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJwxA-0003Ej-7N for help-gnu-emacs@gnu.org; Wed, 21 Feb 2007 14:16:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJwxA-0003Eg-1v for help-gnu-emacs@gnu.org; Wed, 21 Feb 2007 14:16:36 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HJwx9-0003k1-Lp for help-gnu-emacs@gnu.org; Wed, 21 Feb 2007 14:16:35 -0500 Original-Received: from HOME-C4E4A596F7 ([81.5.39.135]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GCG95382 (AUTH halo1); Wed, 21 Feb 2007 21:16:31 +0200 (IST) In-reply-to: (message from Maarten Bergvelt on Wed, 21 Feb 2007 17:05:12 +0000 (UTC)) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:41384 Archived-At: > 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. 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")