From c06aec7395cdf57c2058b3367a24b0ec97bf7483 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 22 Jan 2021 13:28:05 +0530 Subject: [PATCH] emacs: Introduce identical bindings to vim for moving between windows/splits --- emacs/.config/doom/config.el | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/emacs/.config/doom/config.el b/emacs/.config/doom/config.el index cc554a7..7813de2 100644 --- a/emacs/.config/doom/config.el +++ b/emacs/.config/doom/config.el @@ -57,3 +57,33 @@ (setq org-noter-notes-search-path '("~/org/notes/")) (add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode) + +;; Custom key bindings to move between windows/splits +(after! evil + (map! :leader + :desc "winum-select-window-1" + "1" #'winum-select-window-1) + (map! :leader + :desc "winum-select-window-2" + "2" #'winum-select-window-2) + (map! :leader + :desc "winum-select-window-3" + "3" #'winum-select-window-3) + (map! :leader + :desc "winum-select-window-4" + "4" #'winum-select-window-4) + (map! :leader + :desc "winum-select-window-5" + "5" #'winum-select-window-5) + (map! :leader + :desc "winum-select-window-6" + "6" #'winum-select-window-6) + (map! :leader + :desc "winum-select-window-7" + "7" #'winum-select-window-7) + (map! :leader + :desc "winum-select-window-8" + "8" #'winum-select-window-8) + (map! :leader + :desc "winum-select-window-9" + "9" #'winum-select-window-9))