diff options
author | Amin Bandali <bandali@gnu.org> | 2019-08-31 01:45:31 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-08-31 01:45:31 -0400 |
commit | 2c483b3ea7a7ef7f0dbd6f1264dbff73a6ca9614 (patch) | |
tree | 7249de99f941a038cd9f643cfa6fdeccd94dee85 | |
parent | 3327384949bc6c578ebb4e5e80b0f7f6f99fc1bd (diff) | |
download | configs-2c483b3ea7a7ef7f0dbd6f1264dbff73a6ca9614.tar.gz configs-2c483b3ea7a7ef7f0dbd6f1264dbff73a6ca9614.tar.xz configs-2c483b3ea7a7ef7f0dbd6f1264dbff73a6ca9614.zip |
emacs: adapt use-package-font-lock-keywords for use-feature
-rw-r--r-- | .emacs.d/init.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 60c73b7..601d8e3 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -138,6 +138,15 @@ :straight nil ,@args)) +(with-eval-after-load 'use-package-core + (let ((upflk (car use-package-font-lock-keywords))) + (font-lock-add-keywords + 'emacs-lisp-mode + `((,(replace-regexp-in-string + "use-package" "use-feature" + (car upflk)) + ,@(cdr upflk)))))) + (with-eval-after-load 'recentf (add-to-list 'recentf-exclude (expand-file-name "~/.emacs.d/straight/build/"))) |