Emacs init file location in Microsoft Windows
On {Windows 10, Windows 8, Windows 7, Windows Vista} , by default, emacs looks at the following directory/file.
$HOMEPATH/AppData/Roaming/.emacs
-
The
.emacs
file is old emacs convention, used in 1990s and 2000s. $HOMEPATH/AppData/Roaming/.emacs.d/init.el
-
The
.emacs.d/init.el
is modern convention.
If you have the environment variable named HOME
, then it's at:
$HOME/.emacs
$HOME/.emacs.d/init.el
WARNING: HOME
should not be confused with HOMEPATH
.
HOMEPATH
is standard Microsoft Windows environment variable.HOME
is standard unix/linux environment variable. (doesn't exist in Windows by default.)