From: John Wiegley Date: Sat, 27 Apr 2013 22:09:55 +0000 (-0700) Subject: Merge pull request from tarsius/font-lock X-Git-Tag: emacs-29.0.90~1306^2~15^2~453 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2da6318930e59ffe07e6850a9359bc5653afed04;p=emacs.git Merge pull request from tarsius/font-lock fontify use-package form GitHub-reference: https://github.com/jwiegley/use-package/issues/25 --- 2da6318930e59ffe07e6850a9359bc5653afed04 diff --cc lisp/use-package/use-package.el index 5b2cb03580d,275a8b9ee4d..50fa4edd8ad --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@@ -608,8 -604,13 +608,15 @@@ For full documentation. please see comm (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) - +;; Local Variables: +;; indent-tabs-mode: nil +;; End: ;;; use-package.el ends here