From cc28aacecbad7f83a35df9cf577c7687a2184158 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 19 Sep 2018 18:18:28 -0400 Subject: [PATCH] Don't inline DOOMDIR in doom-private-dir Breaks DOOMDIR when config is byte-compiled, as mentioned in #900 --- core/core.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core.el b/core/core.el index c434269f2..7efd876f4 100644 --- a/core/core.el +++ b/core/core.el @@ -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.")