summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2022-08-18 22:53:04 -0700
committerJohn Wiegley <johnw@newartisans.com>2022-08-18 22:53:04 -0700
commit6c2fdaffd98609fb33b5434cd563d07483bd4ef8 (patch)
tree22545d42785c01b7f401ee42571c6c52a8cd79ae
parent09e837dfae9587ce7e535f417ff2bb935b32ff59 (diff)
downloademacs-6c2fdaffd9.tar.gz
Revert "Remove use-package-font-lock-keywords"
-rw-r--r--lisp/use-package/use-package-core.el7
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