From 8ae628339abc14d50b136d3c6fbe96963b5413ed Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Fri, 20 Sep 2024 18:42:38 -0700 Subject: [PATCH] Keybinds for window swapping --- thoom-emacs/modules/thoom-tweaks.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/thoom-emacs/modules/thoom-tweaks.el b/thoom-emacs/modules/thoom-tweaks.el index 00ff395..e8ce266 100644 --- a/thoom-emacs/modules/thoom-tweaks.el +++ b/thoom-emacs/modules/thoom-tweaks.el @@ -47,10 +47,12 @@ ("C-o s" . windmove-down) ("C-o a" . windmove-left) ("C-o d" . windmove-right) - ;; TODO shift-wasd for moving + ("C-o W" . windmove-swap-states-up) + ("C-o S" . windmove-swap-states-down) + ("C-o A" . windmove-swap-states-left) + ("C-o D" . windmove-swap-states-right) ;; TODO C-wasd for resizing ;; TODO C-/ for undo window state change - ;; TODO z for zooming ("C-o z" . thoom/zoom-window) ;; TODO other-window scrolling ("C-o n" . next-buffer) @@ -60,6 +62,10 @@ ("a" . windmove-left) ("s" . windmove-down) ("d" . windmove-right) + ("W" . windmove-swap-states-up) + ("S" . windmove-swap-states-down) + ("A" . windmove-swap-states-left) + ("D" . windmove-swap-states-right) :repeat-map next-buffer-repeat-map ("n" . next-buffer) ("p" . previous-buffer)