diff options
| author | Franck Cuny <franck@fcuny.net> | 2021-09-29 06:48:37 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2021-09-29 06:48:37 -0700 |
| commit | cdf94155ec9d7466cb28131b3f33431f4f1e88d8 (patch) | |
| tree | 4215d736a97e705d3320dafd8c1e7a47cbcbd1cc /emacs/init.el | |
| parent | emacs: more tweaks for notmuch (diff) | |
| download | emacs.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.el | 3 |
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) |
