Don't inline DOOMDIR in doom-private-dir

Breaks DOOMDIR when config is byte-compiled, as mentioned in #900
This commit is contained in:
Henrik Lissner 2018-09-19 18:18:28 -04:00
parent fd7f498858
commit cc28aacecb
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

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