Previous: , Up: Configuring   [Index]


4.2.10 Emacs Files

user-emacs-directory

Variable; default value is ‘~/.emacs.d/’.

Directory beneath which additional per-user Emacs-specific files are placed. Various programs in Emacs store information in this directory.

locate-user-emacs-file

Function

Function: locate-user-emacs-file new-name [old-name]

Return an absolute per-user Emacs-specific file name.

If NEW-NAME exists in ‘user-emacs-directory’, return it.

Else if OLD-NAME is non-nil and ~/OLD-NAME exists, return ~/OLD-NAME.

Else return NEW-NAME in ‘user-emacs-directory’, creating the directory if it does not exist.