Personal website Rudolf Adamkovič

Home / Emacs / Window


Key bindings

Defined in the global-map:

Key Description  
C-x 0 delete window  
C-x 1 delete other windows  
C-x 2 clone window below  
C-x 3 clone window to the right  
C-x o select other window with C-- in reverse
C-x 4 0 delete other window and kill its buffer  
C-x 4 c clone buffer in other window  
C-x 4 b switch to buffer in other window and select it
C-x 4 f find file in other window and select it
C-x 4 d find directory in other window and select it
C-x 4 p run project command in other window and select it
C-x 4 4 run command in other window and select it
C-x ^ enlarge window vertically 1
C-x } enlarge window horizontally 1
C-x { shrink window horizontally 1
C-x + balance windows  

Footnotes:

1

Prefix with C-u [0-9]+ or C-[0-9]+ to shrink/enlarge by [0-9]+ lines.

Related commands:

  • window-swap-states swap current window with following window
  • winner-undo (C-c <left>) to undo mistakes
(add-hook 'after-init-hook #'winner-mode)

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.