Don't byte-compile xdg-path in doom-private-dir

The danger of a stale value post-byte-compilation far outweighs the
benefits.
This commit is contained in:
Henrik Lissner 2018-10-05 23:29:20 -04:00
parent 77510ed2d8
commit 5d3bada86e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -59,12 +59,11 @@ Use this for files that change often, like cache files.")
(defvar doom-private-dir (defvar doom-private-dir
(or (getenv "DOOMDIR") (or (getenv "DOOMDIR")
(eval-when-compile (let ((xdg-path
(let ((xdg-path (expand-file-name "doom/"
(expand-file-name "doom/" (or (getenv "XDG_CONFIG_HOME")
(or (getenv "XDG_CONFIG_HOME") "~/.config"))))
"~/.config")))) (if (file-directory-p xdg-path) xdg-path))
(if (file-directory-p xdg-path) xdg-path)))
"~/.doom.d/") "~/.doom.d/")
"Where your private customizations are placed. Must end in a slash. Respects "Where your private customizations are placed. Must end in a slash. Respects
XDG directory conventions if ~/.config/doom exists.") XDG directory conventions if ~/.config/doom exists.")