From a2da5d7a6f638b80a486a0e4453bef8984704a38 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 17 Aug 2020 21:25:01 -0400 Subject: [PATCH] Fix void-variable comp-eln-load-path error For users on older versions of gccemacs. --- core/core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core.el b/core/core.el index 4c96f5a68..7ac775a41 100644 --- a/core/core.el +++ b/core/core.el @@ -276,7 +276,8 @@ config.el instead." (setq comp-deferred-compilation nil) ;; Don't store eln files in ~/.emacs.d; it's likely to be purged when ;; upgrading Doom. - (add-to-list 'comp-eln-load-path (concat doom-cache-dir "eln/")) + (when (boundp 'comp-eln-load-path) + (add-to-list 'comp-eln-load-path (concat doom-cache-dir "eln/"))) ;; HACK Disable native-compilation for some troublesome packages (add-to-list 'comp-deferred-compilation-black-list "/evil-collection-vterm\\.el\\'"))