diff options
| author | John Wiegley | 2022-08-18 22:53:04 -0700 |
|---|---|---|
| committer | John Wiegley | 2022-08-18 22:53:04 -0700 |
| commit | 6c2fdaffd98609fb33b5434cd563d07483bd4ef8 (patch) | |
| tree | 22545d42785c01b7f401ee42571c6c52a8cd79ae | |
| parent | 09e837dfae9587ce7e535f417ff2bb935b32ff59 (diff) | |
| download | emacs-6c2fdaffd98609fb33b5434cd563d07483bd4ef8.tar.gz emacs-6c2fdaffd98609fb33b5434cd563d07483bd4ef8.zip | |
Revert "Remove use-package-font-lock-keywords"
This reverts commit 4938167bfffcf08279445827d2eaae78c9557675.
| -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." | |||
| 328 | (set-default sym value)) | 328 | (set-default sym value)) |
| 329 | :group 'use-package) | 329 | :group 'use-package) |
| 330 | 330 | ||
| 331 | (defconst use-package-font-lock-keywords | ||
| 332 | '(("(\\(use-package\\)\\_>[ \t']*\\(\\(?:\\sw\\|\\s_\\)+\\)?" | ||
| 333 | (1 font-lock-keyword-face) | ||
| 334 | (2 font-lock-constant-face nil t)))) | ||
| 335 | |||
| 336 | (font-lock-add-keywords 'emacs-lisp-mode use-package-font-lock-keywords) | ||
| 337 | |||
| 331 | (defcustom use-package-compute-statistics nil | 338 | (defcustom use-package-compute-statistics nil |
| 332 | "If non-nil, compute statistics concerned use-package declarations. | 339 | "If non-nil, compute statistics concerned use-package declarations. |
| 333 | View the statistical report using `use-package-report'. Note that | 340 | View the statistical report using `use-package-report'. Note that |