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:
parent
77510ed2d8
commit
5d3bada86e
1 changed files with 5 additions and 6 deletions
11
core/core.el
11
core/core.el
|
@ -59,12 +59,11 @@ Use this for files that change often, like cache files.")
|
|||
|
||||
(defvar doom-private-dir
|
||||
(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)))
|
||||
(let ((xdg-path
|
||||
(expand-file-name "doom/"
|
||||
(or (getenv "XDG_CONFIG_HOME")
|
||||
"~/.config"))))
|
||||
(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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue