Like windmove, but swaps buffers while moving point

frames, convenience


Melpa Status Melpa Stable Status Support me

Swap Emacs windows with their neighbours

If you enjoy using windmove, this package is an add-on for you: it has variants of the windmove commands which swap the buffers as you move, so that you get the effect of "dragging" windows around directionally with the arrow keys.


You can install windswap from the MELPA repository. The version of windswap there will always be up-to-date.

Add global key bindings for windswap's commands manually, or use the convenient windswap-default-keybindings function.

(windmove-default-keybindings 'control)
(windswap-default-keybindings 'control 'shift)


Author: Steve Purcell


This little library was extracted from the author's full Emacs configuration, which readers might find of interest.

💝 Support this project and my other Open Source work

💼 LinkedIn profile

🐦 @sanityinc