projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3327384
)
emacs: adapt use-package-font-lock-keywords for use-feature
author
Amin Bandali
<bandali@gnu.org>
Sat, 31 Aug 2019 05:45:31 +0000
(
01:45
-0400)
committer
Amin Bandali
<bandali@gnu.org>
Sat, 31 Aug 2019 05:45:31 +0000
(
01:45
-0400)
.emacs.d/init.el
patch
|
blob
|
blame
|
history
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
60c73b7
..
601d8e3
100644
(file)
--- a/
.emacs.d/init.el
+++ b/
.emacs.d/init.el
@@
-138,6
+138,15
@@
:straight nil
,@args))
: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/")))
(with-eval-after-load 'recentf
(add-to-list 'recentf-exclude
(expand-file-name "~/.emacs.d/straight/build/")))