Closed ymarco closed 4 years ago
You should probably use this:
locate-user-emacs-file is a compiled Lisp function in ‘files.el’.
(locate-user-emacs-file NEW-NAME &optional 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.
For other cases, you should use expand-file-name
rather than concat
.
Thank you @alphapapa, fixed.
Thanks for the PR!
.config/emacs is also valid since emacs27, this make it more portable.