Skip to content

Instantly share code, notes, and snippets.

@Pitometsu
Created October 6, 2013 04:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pitometsu/6849614 to your computer and use it in GitHub Desktop.
Save Pitometsu/6849614 to your computer and use it in GitHub Desktop.
macro for lazy customizing el-get packages init-files
;; helper macro for multiply plugin interaction
(defmacro after (mode &rest body)
"`eval-after-load' MODE evaluate BODY."
(declare (indent defun))
`(if (featurep ,mode)
(progn ,@body)
(eval-after-load ,mode
'(progn ,@body))))
(font-lock-add-keywords 'emacs-lisp-mode
'(("(\\<\\(after\\)\\> +'\\([^() ]+\\)"
(1 'font-lock-keyword-face)
(2 'font-lock-constant-face))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment