Ensure which-key loads at startup

This commit is contained in:
Jeremy Dormitzer 2022-04-07 09:27:45 -04:00
parent c49377a82d
commit 663bd1e36f
2 changed files with 6 additions and 5 deletions

View File

@ -11,8 +11,7 @@
:prefix-map 'leader-map))
(use-package which-key
:config
(which-key-mode))
:hook (after-init . which-key-mode))
(leader-def-key "SPC" #'execute-extended-command)

View File

@ -32,8 +32,10 @@
"C-r" #'winner-redo)
;; Condense the which-key display for window selection bindings
(push '(("\\(.*\\) 0" . "select-window-0") . ("\\1 0..9" . "window 0..9"))
which-key-replacement-alist)
(push '((nil . "select-window-[1-9]") . t) which-key-replacement-alist)
(with-eval-after-load 'which-key
(push '(("\\(.*\\) 0" . "select-window-0") . ("\\1 0..9" . "window 0..9"))
which-key-replacement-alist)
(push '((nil . "select-window-[1-9]") . t) which-key-replacement-alist))
(provide 'init-windows)