summaryrefslogtreecommitdiff
path: root/emacs/init.el
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-05-12 16:48:58 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2024-05-12 16:48:58 +0100
commit4412c0fa1a3bf92bc9a0eec488565225971706a7 (patch)
tree9c0396fc3cc855581f2c66364fee5c0a93f3aecb /emacs/init.el
parent8f283b24326f5853479ca7b4d3fd507221bc14bb (diff)
emacs: Configure windmove’s swap keybindings
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 626d18d..b2047b2 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -112,6 +112,7 @@
(keymap-global-set "C-c f" #'toggle-frame-maximized)
(windmove-default-keybindings 'super)
+(windmove-swap-states-default-keybindings)
(dolist (fn '(delete-window split-window-horizontally split-window-vertically))
(advice-add fn :after #'(lambda (&rest _args) (balance-windows))))