From: Amin Bandali Date: Sat, 31 Aug 2019 05:45:31 +0000 (-0400) Subject: emacs: adapt use-package-font-lock-keywords for use-feature X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/2c483b3ea7a7ef7f0dbd6f1264dbff73a6ca9614?ds=sidebyside;hp=3327384949bc6c578ebb4e5e80b0f7f6f99fc1bd emacs: adapt use-package-font-lock-keywords for use-feature --- 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/")))