From 050091fed2890d6f6e817d99f41fd6c30c12a343 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 19 Mar 2021 12:14:06 -0400 Subject: [PATCH] Use evil-window-map for SPC w --- emacs/.emacs.d/config/init-windows.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/emacs/.emacs.d/config/init-windows.el b/emacs/.emacs.d/config/init-windows.el index 5c9fa62..1946fb2 100644 --- a/emacs/.emacs.d/config/init-windows.el +++ b/emacs/.emacs.d/config/init-windows.el @@ -24,13 +24,12 @@ "7" #'winum-select-window-7 "8" #'winum-select-window-8 "9" #'winum-select-window-9 - "w" '(nil :which-key "window") - "w/" #'split-window-horizontally - "w-" #'split-window-vertically - "wm" #'delete-other-windows - "wd" #'delete-window - "wp" #'winner-undo - "wn" #'winner-redo) + "w" '(evil-window-map :which-key "window")) + +(general-def evil-window-map + "m" #'delete-other-windows + "u" #'winner-undo + "C-r" #'winner-redo) ;; Condense the which-key display for window selection bindings (push '(("\\(.*\\) 0" . "select-window-0") . ("\\1 0..9" . "window 0..9"))