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: windows: find init Date: Sat, 13 Jun 2015 11:15:50 +0300 Message-ID: <83bngkqb0p.fsf@gnu.org> References: <4cd711ae-d043-48f2-9332-444d85059274@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1434183381 6051 80.91.229.3 (13 Jun 2015 08:16:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2015 08:16:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 13 10:16:13 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z3gbs-00005c-FJ for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2015 10:16:12 +0200 Original-Received: from localhost ([::1]:55072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3gbr-0004Lv-MN for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2015 04:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3gbf-0004Ld-J7 for help-gnu-emacs@gnu.org; Sat, 13 Jun 2015 04:16:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3gbb-0006BA-HH for help-gnu-emacs@gnu.org; Sat, 13 Jun 2015 04:15:59 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:36736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3gba-00069q-TO for help-gnu-emacs@gnu.org; Sat, 13 Jun 2015 04:15:55 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NPV00500ISU1400@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Sat, 13 Jun 2015 11:15:53 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NPV00408IYHZZ20@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Sat, 13 Jun 2015 11:15:53 +0300 (IDT) In-reply-to: <4cd711ae-d043-48f2-9332-444d85059274@googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104904 Archived-At: > Date: Fri, 12 Jun 2015 20:42:25 -0700 (PDT) > From: Rusi > Injection-Date: Sat, 13 Jun 2015 03:42:26 +0000 > > On Saturday, June 13, 2015 at 9:05:21 AM UTC+5:30, Vaidheeswaran C wrote: > > On Saturday 13 June 2015 08:49 AM, Rusi wrote: > > > Some students of mine have shown willingness to work with emacs > > > However the problems of setup on windows are proving beyond me. > > > > > > In particular, on windows, where is the emacs setup file/directory? > > > > http://www.gnu.org/software/emacs/manual/html_mono/efaq-w32.html#Location-of-init-file > > [Not on windows now so from memory] > Yeah I know that page > And I tried those env-variable setting options [for a couple of hours] before > giving up I'm guessing you have added/changed the environment variables or Registry values without logoff/logon afterwards, and expected that to work. It won't. To try which of the variables and values work for you, do this: . set/change the variable from the Windows shell prompt, as in "set HOME=c:\wherever\you\want" . run Emacs from the same shell prompt Once you've decided which variable you want to set and to what value, make it permanent by right-clicking "My Computer" (or "Computer" on post-XP versions), selecting Properties->Advanced, find "Environment Variables" there, and change them as you decided. Then logoff and logon again, or restart the system. Now the new value of the environment variable will be in effect no matter how you invoke Emacs: you can do that from a shell prompt, from a desktop shortcut, or from the Start->Run dialog, whatever. That said, there's nothing wrong with using the default without setting HOME in the environment. The default puts .emacs in a decent place, and users can always reach it with "C-x C-f ~/.emacs RET" without knowing where it is on their system.