help-emacs-windows
[Top][All Lists]

## Re: [h-e-w] Emacs not finding the ".emacs" file

 From: Raymond Zeitler Subject: Re: [h-e-w] Emacs not finding the ".emacs" file Date: Fri, 6 Aug 2004 09:33:52 -0400

```Three things.

First of all, to set an environment variable from within a BAT or CMD
file, the correct syntax is:

Set HOME=c:\HOME\rmh

Mr. Heiberger left off the "set" part.  Do *not* include any spaces
around the equals sign.  And Windows doesn't understand "\$Home."  It's
either %Home% within a batch file, or Home at the command line.

Second, the Windows binaries come with addpm.exe, which modifies the
Windows registry.  This is an alternative to using the "set home"
home directory key resides in HKCU/Software/Gnu/Emacs/Home and would
contain a path with forward slashes: c:/HOME/rmh , for example.  This is
a great way to set \$Home if the computer is to be used by more than one
person.

Third, I've been using Emacs for four years.  In all this time, Emacs
has used C:\ has the home directory in the absence of other
instructions.  I haven't upgraded to 21.3 yet, but I doubt that Emacs
will set Home to %userprofile%.  I know that the version I use, 21.2.1,
does not use %userprofile% for \$Home.

HTH
-----Original Message-----
Date: Thu, 5 Aug 2004 18:23:06 -0400
Subject: Re: [h-e-w] Emacs not finding the ".emacs" file
Content-Type: text/plain; charset=us-ascii

Stephen Leake
> Emacs looks for .emacs in \$HOME. You need to define the HOME
> environment variable in the system control panel; set it to c:\Emacs

--

No, please don't do that.  The environment variable HOME is you.  It is
not
the emacs program or any other system value.

I use
HOME=c:\HOME\rmh
Set this value in the