From: Jonas Bernoulli Date: Sat, 27 Apr 2013 15:42:36 +0000 (+0200) Subject: fontify use-package form X-Git-Tag: emacs-29.0.90~1306^2~15^2~453^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5b696d19187efec222d1e50bdb750d3a6477e12e;p=emacs.git fontify use-package form --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 896edeade97..275a8b9ee4d 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -604,6 +604,13 @@ For full documentation. please see commentary. (put 'use-package 'lisp-indent-function 1) +(defconst use-package-font-lock-keywords + '(("(\\(use-package\\)\\> *\\(\\sw+\\)?" + (1 font-lock-keyword-face) + (2 font-lock-constant-face)))) + +(font-lock-add-keywords 'emacs-lisp-mode use-package-font-lock-keywords) + (provide 'use-package) ;;; use-package.el ends here