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)