akirakyle / emacs-webkit

An Emacs Dynamic Module for WebKit, aka a fully fledged browser inside emacs
GNU General Public License v3.0
425 stars 25 forks source link

Use user-emacs-directory instead of .emacs.d #3

Closed ymarco closed 4 years ago

ymarco commented 4 years ago

.config/emacs is also valid since emacs27, this make it more portable.

alphapapa commented 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.

ymarco commented 4 years ago

Thank you @alphapapa, fixed.

akirakyle commented 4 years ago

Thanks for the PR!