Next: Troubleshooting init file problems, Previous: What is my init file?, Up: Installing Emacs [Contents][Index]
3.5 Where do I put my init file?On Windows, the .emacs init file may be called _emacs for backward compatibility with DOS and FAT filesystems where filenames could not start with a dot. Some users prefer to continue using such a name due to historical problems various Windows tools had in the past with file names that begin with a dot. The init file may also be called .emacs.d/init.el. The early-init.el file and many of the other files that are created by Lisp packages are stored in the .emacs.d directory too, which keeps all your Emacs related files in one place.
All the files mentioned above should go in your HOME
directory. The HOME
directory is determined by following the steps below:
HOME
is set, use the directory it indicates.HKCU\SOFTWARE\GNU\Emacs\HOME
is set, use the directory it indicates.HKLM\SOFTWARE\GNU\Emacs\HOME
is set, use the directory it indicates. Not recommended, as it results in users sharing the same HOME directory.HOME
was not set.Within Emacs, ~ at the beginning of a file name is expanded to your HOME
directory, so you can always find your .emacs file by typing the command C-x C-f ~/.emacs.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4