From cdf94155ec9d7466cb28131b3f33431f4f1e88d8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 29 Sep 2021 06:48:37 -0700 Subject: emacs: set variable only if it exists The emacs version on arch does not yet have support for native code compilation, so I need to check that the variable exists before using it. --- emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index bbbb170..84f1356 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -11,7 +11,8 @@ (require 'fcuny-vars) ;; where to store compiled files -(add-to-list 'native-comp-eln-load-path (expand-file-name "eln-cache" fcuny/path-emacs-var)) +(when (boundp 'native-comp-eln-load-path) + (add-to-list 'native-comp-eln-load-path (expand-file-name "eln-cache" fcuny/path-emacs-var))) ;; where to store the packages (setq package-user-dir fcuny/path-emacs-elpa) -- cgit 1.4.1