1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 14:01:43 -08:00

Merge pull request from npostavs/hilite-redux

highlight use-package before typing package name
GitHub-reference: https://github.com/jwiegley/use-package/issues/47
This commit is contained in:
John Wiegley 2013-09-04 13:27:43 -07:00
commit 749295c052

View file

@ -661,9 +661,9 @@ For full documentation. please see commentary.
(put 'use-package 'lisp-indent-function 1)
(defconst use-package-font-lock-keywords
'(("(\\(use-package\\)\\_>[\n[:space:]]+\\(\\(?:\\s_\\|\\sw\\)+\\)"
'(("(\\(use-package\\)\\_>[ \t']*\\(\\sw+\\)?"
(1 font-lock-keyword-face)
(2 font-lock-constant-face))))
(2 font-lock-constant-face nil t))))
(font-lock-add-keywords 'emacs-lisp-mode use-package-font-lock-keywords)