Modifying %HOME% on Emacs 24.3 on Windows causes .emacs to not be found
- by David
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.