From 5d3bada86eeb78818afcfe78a4feb43fbc1bac48 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 5 Oct 2018 23:29:20 -0400 Subject: [PATCH] Don't byte-compile xdg-path in doom-private-dir The danger of a stale value post-byte-compilation far outweighs the benefits. --- core/core.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/core.el b/core/core.el index ad2eb1813..8980f341c 100644 --- a/core/core.el +++ b/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.")