Skip to content

Instantly share code, notes, and snippets.

@milkypostman
Created December 14, 2013 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milkypostman/7954618 to your computer and use it in GitHub Desktop.
Save milkypostman/7954618 to your computer and use it in GitHub Desktop.
After macro.
(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