From 4526952932b32c0440a2bc98f833065cb6dbf647 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 9 May 2023 00:48:29 +0100 Subject: [PATCH] fix(windows): allow window switching keybindings to work in dired --- modules/windows/siren-windmove.el | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/modules/windows/siren-windmove.el b/modules/windows/siren-windmove.el index 574245b..634d291 100644 --- a/modules/windows/siren-windmove.el +++ b/modules/windows/siren-windmove.el @@ -12,10 +12,11 @@ :straight (:type built-in) :general - ("M-i" 'siren-windmove-up) - ("M-k" 'siren-windmove-down) - ("M-j" 'siren-windmove-left) - ("M-l" 'siren-windmove-right)) + (:keymaps '(global ibuffer-mode-map) + "M-i" 'windmove-up + "M-k" 'windmove-down + "M-j" 'windmove-left + "M-l" 'windmove-right)) (use-package buffer-move :general @@ -30,10 +31,11 @@ :straight (:type built-in) :general - ("M-i" 'windmove-up) - ("M-k" 'windmove-down) - ("M-j" 'windmove-left) - ("M-l" 'windmove-right) + (:keymaps '(global ibuffer-mode-map) + "M-i" 'windmove-up + "M-k" 'windmove-down + "M-j" 'windmove-left + "M-l" 'windmove-right) ("M-K" 'windmove-swap-states-down) ("M-I" 'windmove-swap-states-up) ("M-J" 'windmove-swap-states-left)