]> git.eshelyaron.com Git - emacs.git/commit
Prefer ~/.config/emacs to ~/.emacs.d if neither exists
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Aug 2019 05:29:52 +0000 (22:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Aug 2019 07:24:46 +0000 (00:24 -0700)
commita4144af909c3a6baf381659bf158e254b28ee002
tree3f252887407f71a35561c34ab2cf1649826b71c4
parent462be72f41580a3137e8f4f1e48580ac6bcc371f
Prefer ~/.config/emacs to ~/.emacs.d if neither exists

That way, when Emacs starts in a fresh home directory,
it prefers the new (XDG) convention rather than the old one.
* lisp/files.el (locate-user-emacs-file): Make the parent
directories of user-emacs-directory if needed.  This is useful
if user-emacs-directory is "~/.config/emacs" and "~/.config"
does not yet exist.
* lisp/startup.el (command-line):
* lisp/subr.el (user-emacs-directory):
Prefer XDG_CONFIG_HOME to ~/.emacs.d if neither exists.
lisp/files.el
lisp/startup.el
lisp/subr.el