summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-09-29 06:48:37 -0700
committerFranck Cuny <franck@fcuny.net>2021-09-29 06:48:37 -0700
commitcdf94155ec9d7466cb28131b3f33431f4f1e88d8 (patch)
tree4215d736a97e705d3320dafd8c1e7a47cbcbd1cc
parentemacs: more tweaks for notmuch (diff)
downloademacs.d-cdf94155ec9d7466cb28131b3f33431f4f1e88d8.tar.gz
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.
Diffstat (limited to '')
-rw-r--r--emacs/init.el3
1 files changed, 2 insertions, 1 deletions
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)