diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-29 22:29:52 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-30 00:24:46 -0700 |
| commit | a4144af909c3a6baf381659bf158e254b28ee002 (patch) | |
| tree | 3f252887407f71a35561c34ab2cf1649826b71c4 /lisp/files.el | |
| parent | 462be72f41580a3137e8f4f1e48580ac6bcc371f (diff) | |
| download | emacs-a4144af909c3a6baf381659bf158e254b28ee002.tar.gz | |
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.
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 2a84c2c48f5..ce4dd99bd53 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1043,7 +1043,7 @@ directory if it does not exist." (setq errtype "access")) (with-file-modes ?\700 (condition-case nil - (make-directory user-emacs-directory) + (make-directory user-emacs-directory t) (error (setq errtype "create"))))) (when (and errtype user-emacs-directory-warning |
