diff options
author | Tom Willemse | 2015-05-09 19:12:55 +0200 |
---|---|---|
committer | Tom Willemse | 2015-05-09 19:12:55 +0200 |
commit | 96e30cf2a0be20d6881aea05eff0bf09472d0ae2 (patch) | |
tree | 1c653d3980fdb513dc4fc5e53561433dec326079 /emacs/.emacs.d/init.el | |
parent | 1bda53e97de0d28a39a249a984dd3efe35eec1c2 (diff) | |
download | dotfiles-96e30cf2a0be20d6881aea05eff0bf09472d0ae2.tar.gz dotfiles-96e30cf2a0be20d6881aea05eff0bf09472d0ae2.zip |
Cleanup auto-init function
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r-- | emacs/.emacs.d/init.el | 9 |
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) |