From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: [gmane.comp.gnu.mingw.msys] Re: .emacs at c:\ and ~/ Date: Wed, 27 Jun 2007 10:15:32 +0200 Message-ID: <861wfxke3f.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1182932147 18603 80.91.229.12 (27 Jun 2007 08:15:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2007 08:15:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 27 10:15:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I3Sgf-00047G-VJ for ged-emacs-devel@m.gmane.org; Wed, 27 Jun 2007 10:15:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3Sge-0007r6-UD for ged-emacs-devel@m.gmane.org; Wed, 27 Jun 2007 04:15:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3SgZ-0007nn-UF for emacs-devel@gnu.org; Wed, 27 Jun 2007 04:15:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3SgZ-0007my-AS for emacs-devel@gnu.org; Wed, 27 Jun 2007 04:15:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3SgZ-0007ml-3O for emacs-devel@gnu.org; Wed, 27 Jun 2007 04:15:35 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I3SgY-0000ra-LD for emacs-devel@gnu.org; Wed, 27 Jun 2007 04:15:34 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id KAA21375 for ; Wed, 27 Jun 2007 10:15:32 +0200 X-Delivered-To: Original-Received: (qmail 6093 invoked from network); 27 Jun 2007 08:15:32 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 27 Jun 2007 08:15:32 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id DD8E48F832; Wed, 27 Jun 2007 10:15:32 +0200 (CEST) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:73915 Archived-At: --=-=-= Hi, I have to agree with the misleading wording in the info page regarding the -u option for using the init file of other users. At least, one should probably write "to specify a user whose init file Emacs should read instead". Maybe we should also add a link to the Windows-specific section explaining about what ~user means under Windows? I don't think it is at all clear to the average user what effect -u will have under Windows. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline From: "Daniel C. Bastos" Newsgroups: gmane.comp.gnu.mingw.msys Subject: Re: .emacs at c:\ and ~/ Date: Tue, 26 Jun 2007 22:02:21 -0400 Archived-At: MIME-Version: 1.0 On 6/26/07, David Kastrup wrote: > "Daniel C. Bastos" > writes: > > > I currently keep my .emacs in c:\ and in ~/ in msys. I tried putting it > > in c:\emacs and in c:\emacs\bin, but emacs seems to ignore them there. > > > > The manual says > > > > The Init File, `~/.emacs' > > ========================= > > > > When Emacs is started, it normally loads a Lisp program from the file > > `.emacs' or `.emacs.el' in your home directory. We call this file your > > "init file" because it specifies how to initialize Emacs for you. You > > can use the command line switch `-q' to prevent loading your init file, > > and `-u' (or `--user') to specify a different user's init file (*note > > Entering Emacs::). > > > > But I couldn't get -u or --user to work. I tried > > > > %emacs -u /c/emacs/.emacs > > %emacs --user /c/emacs/.emacs > > %emacs -u 'c:\emacs\.emacs' > > %emacs --user 'c:\emacs\.emacs' > > Do you actually have a user called /c/emacs/.emacs? I find that > unlikely. I just noticed the proper usage of --user by looking at `emacs --help`, but I couldn't tell that by the text in the info page (above). It mentions a ``user's init file'' so I thought of giving it a path to a user's init file, however strange the flag --user would've been for that. > > If I can get this flag to work, then my problem is solved. What I > > currently do is use a script that copies the .emacs from /c/ to ~/ > > before it loads emacs from the shell. But how do you guys keep your > > .emacs in one place? > > > > I need it in both places because emacs reads c:\.emacs when I call > > it from a Windows hotkey, and it reads ~/.emacs when called from > > msys. > > How about actually setting the HOME variable in your system? That worked a few days ago after someone suggesting the same. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --=-=-= -- David Kastrup --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--