Skip to content

Instantly share code, notes, and snippets.

@saevarb
Created June 8, 2015 11:41
Show Gist options
  • Save saevarb/22edb1772dc2ab94b7ca to your computer and use it in GitHub Desktop.
Save saevarb/22edb1772dc2ab94b7ca to your computer and use it in GitHub Desktop.
(if (fboundp 'with-eval-after-load)
(defmacro after (feature &rest; body)
"After FEATURE is loaded, evaluate BODY."
(declare (indent defun))
`(with-eval-after-load ,feature ,@body))
(defmacro after (feature &rest; body)
"After FEATURE is loaded, evaluate BODY."
(declare (indent defun))
`(eval-after-load ,feature
'(progn ,@body))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment