Created
December 14, 2013 01:44
-
-
Save milkypostman/7954618 to your computer and use it in GitHub Desktop.
After macro.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro after (mode &rest body) | |
"`eval-after-load' MODE evaluate BODY." | |
(declare (indent defun)) | |
(let ((load-arg (cond | |
((consp mode) mode) | |
((symbolp mode) `(quote ,mode)) | |
(t mode)))) | |
`(eval-after-load ,load-arg | |
'(progn ,@body)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment