emacs: Introduce identical bindings to vim for moving between windows/splits

This commit is contained in:
Sanchayan Maity 2021-01-22 13:28:05 +05:30
parent b2919695a2
commit c06aec7395

View file

@ -57,3 +57,33 @@
(setq org-noter-notes-search-path '("~/org/notes/")) (setq org-noter-notes-search-path '("~/org/notes/"))
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode) (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))