Emacs init file location in Microsoft Windows

By Xah Lee. Date: . Last updated: .

On {Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista} , by default, emacs looks at the following directory/file.

The .emacs.d/init.el is modern convention.
The .emacs file is old emacs convention, used in 1990s and 2000s.

If you have the environment variable named HOME, then it's at:




🛑 WARNING: HOME should not be confused with HOMEPATH.


Emacs on Microsoft Windows