Skip to content

Commit 22ac29d

Browse files
committed
tweak(windmove): add a prefix for moving between windows
1 parent 0d68027 commit 22ac29d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/me-builtin.el

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,14 @@ Useful for quickly switching to an open buffer."
15171517
:demand
15181518
:config
15191519
;; Navigate windows using Shift+Direction
1520-
(windmove-default-keybindings 'shift))
1520+
(windmove-default-keybindings 'shift)
1521+
(defvar-keymap +windmove-keys
1522+
:repeat t ; Make it work with `repeat-mode'
1523+
"k" #'windmove-up
1524+
"j" #'windmove-down
1525+
"h" #'windmove-left
1526+
"l" #'windmove-right)
1527+
(keymap-global-set "C-c w" +windmove-keys))
15211528

15221529
(use-package pulse
15231530
:init

0 commit comments

Comments
 (0)