Cleanup auto-init function
This commit is contained in:
parent
1bda53e97d
commit
96e30cf2a0
1 changed files with 5 additions and 4 deletions
|
@ -45,10 +45,11 @@
|
||||||
|
|
||||||
The loaded file should be `LIBRARY-init', either `.el' or `.elc'
|
The loaded file should be `LIBRARY-init', either `.el' or `.elc'
|
||||||
will do."
|
will do."
|
||||||
`(with-eval-after-load ',library
|
(let ((name (if (symbolp library)
|
||||||
(load ,(concat (if (symbolp library)
|
(symbol-name library)
|
||||||
(symbol-name library)
|
library)))
|
||||||
library) "-init"))))
|
`(with-eval-after-load ',library
|
||||||
|
(load ,(concat name "-init")))))
|
||||||
|
|
||||||
;; http://www.lunaryorn.com/2013/06/25/introducing-with-eval-after-load/
|
;; http://www.lunaryorn.com/2013/06/25/introducing-with-eval-after-load/
|
||||||
(defmacro stante-after (feature &rest forms)
|
(defmacro stante-after (feature &rest forms)
|
||||||
|
|
Loading…
Reference in a new issue