summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-08-31 01:45:31 -0400
committerAmin Bandali <bandali@gnu.org>2019-08-31 01:45:31 -0400
commit2c483b3ea7a7ef7f0dbd6f1264dbff73a6ca9614 (patch)
tree7249de99f941a038cd9f643cfa6fdeccd94dee85
parent3327384949bc6c578ebb4e5e80b0f7f6f99fc1bd (diff)
downloadconfigs-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.el9
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/")))