Compare commits

...

1 Commits

Author SHA1 Message Date
Jeremy Dormitzer
663bd1e36f Ensure which-key loads at startup 2022-04-07 12:18:04 -04:00
2 changed files with 6 additions and 5 deletions

View File

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

View File

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