mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Don't inline DOOMDIR in doom-private-dir
Breaks DOOMDIR when config is byte-compiled, as mentioned in #900
This commit is contained in:
@ -57,14 +57,14 @@ Use this for files that change often, like cache files.")
|
|||||||
"Where the Doom manual is stored.")
|
"Where the Doom manual is stored.")
|
||||||
|
|
||||||
(defvar doom-private-dir
|
(defvar doom-private-dir
|
||||||
(eval-when-compile
|
(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.")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user