summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 1d80996..2d6df93 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -45,10 +45,11 @@
The loaded file should be `LIBRARY-init', either `.el' or `.elc'
will do."
- `(with-eval-after-load ',library
- (load ,(concat (if (symbolp library)
- (symbol-name library)
- library) "-init"))))
+ (let ((name (if (symbolp library)
+ (symbol-name library)
+ library)))
+ `(with-eval-after-load ',library
+ (load ,(concat name "-init")))))
;; http://www.lunaryorn.com/2013/06/25/introducing-with-eval-after-load/
(defmacro stante-after (feature &rest forms)