Reset which-key replacements on doom/reload
Prevents build-up of which-key entries. See justbur/emacs-which-key#226
This commit is contained in:
parent
35185b2175
commit
390594442a
1 changed files with 4 additions and 0 deletions
|
@ -191,6 +191,10 @@ localleader prefix."
|
|||
which-key-min-display-lines 6
|
||||
which-key-side-window-slot -10)
|
||||
:config
|
||||
(defvar doom--initial-which-key-replacement-alist which-key-replacement-alist)
|
||||
(add-hook! 'doom-before-reload-hook
|
||||
(defun doom-reset-which-key-replacements-h ()
|
||||
(setq which-key-replacement-alist doom--initial-which-key-replacement-alist)))
|
||||
;; general improvements to which-key readability
|
||||
(set-face-attribute 'which-key-local-map-description-face nil :weight 'bold)
|
||||
(which-key-setup-side-window-bottom)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue