From: John Wiegley Date: Fri, 19 Aug 2022 05:53:04 +0000 (-0700) Subject: Revert "Remove use-package-font-lock-keywords" X-Git-Tag: emacs-29.0.90~1306^2~15^2~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c2fdaffd9;p=emacs.git Revert "Remove use-package-font-lock-keywords" This reverts commit 4938167bfffcf08279445827d2eaae78c9557675. --- 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