diff options
author | John Wiegley <johnw@newartisans.com> | 2022-08-18 22:53:04 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2022-08-18 22:53:04 -0700 |
commit | 6c2fdaffd98609fb33b5434cd563d07483bd4ef8 (patch) | |
tree | 22545d42785c01b7f401ee42571c6c52a8cd79ae /lisp | |
parent | 09e837dfae9587ce7e535f417ff2bb935b32ff59 (diff) | |
download | emacs-6c2fdaffd98609fb33b5434cd563d07483bd4ef8.tar.gz emacs-6c2fdaffd98609fb33b5434cd563d07483bd4ef8.tar.bz2 emacs-6c2fdaffd98609fb33b5434cd563d07483bd4ef8.zip |
Revert "Remove use-package-font-lock-keywords"
This reverts commit 4938167bfffcf08279445827d2eaae78c9557675.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/use-package/use-package-core.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index 0734dcf1c80..ab35131e4f4 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -328,6 +328,13 @@ Must be set before loading use-package." (set-default sym value)) :group 'use-package) +(defconst use-package-font-lock-keywords + '(("(\\(use-package\\)\\_>[ \t']*\\(\\(?:\\sw\\|\\s_\\)+\\)?" + (1 font-lock-keyword-face) + (2 font-lock-constant-face nil t)))) + +(font-lock-add-keywords 'emacs-lisp-mode use-package-font-lock-keywords) + (defcustom use-package-compute-statistics nil "If non-nil, compute statistics concerned use-package declarations. View the statistical report using `use-package-report'. Note that |