Created
October 6, 2013 04:43
-
-
Save Pitometsu/6849614 to your computer and use it in GitHub Desktop.
macro for lazy customizing el-get packages init-files
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
;; 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