Modifying %HOME% on Emacs 24.3 on Windows causes .emacs to not be found
Posted
by
David
on Super User
See other posts from Super User
or by David
Published on 2014-08-20T16:17:25Z
Indexed on
2014/08/20
16:24 UTC
Read the original article
Hit count: 312
In order for magit to read my git settings on Emacs 24.3.1 for Windows, I added the following configuration from a stack overflow post:
(when (string-equal system-type "windows-nt")
(setenv "HOME" (concat (getenv "HOMEDRIVE") (getenv "HOMEPATH")))
Interestingly, after this is added to my .emacs, Emacs thinks .emacs doesn't exist anymore.
If I do M-x cd to ~ and then do M-x pwd it says ~ is located at C:\Users\Me\AppData\Roaming. It appears that emacs is reading the .emacs settings file because it loads my custom theme. However, if I try to find ~/.emacs Emacs doesn't see it. The file has all permissions on the file system for any user.
© Super User or respective owner