mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-13 07:30:56 +00:00
Merge pull request from tarsius/font-lock
fontify use-package form GitHub-reference: https://github.com/jwiegley/use-package/issues/25
This commit is contained in:
commit
2da6318930
1 changed files with 7 additions and 0 deletions
|
@ -608,6 +608,13 @@ For full documentation. please see commentary.
|
||||||
|
|
||||||
(put 'use-package 'lisp-indent-function 1)
|
(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)
|
(provide 'use-package)
|
||||||
;; Local Variables:
|
;; Local Variables:
|
||||||
;; indent-tabs-mode: nil
|
;; indent-tabs-mode: nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue