banjomonster
banjomonster

Reputation: 589

Is there a way to undo split-window-below in emacs?

If I have my frame split horizontally, then split one of those widows vertically with split-window-below, is there a way to go back to 2 windows split horizontally without having to use delete-other-windows and then split-window-right?

Upvotes: 18

Views: 5083

Answers (3)

Nicolas Dudebout
Nicolas Dudebout

Reputation: 9262

You can use delete-window which is bound to C-x 0.

Upvotes: 21

Jürgen Hötzel
Jürgen Hötzel

Reputation: 19747

You can save your window-configurations:

window-configuration-to-register C-x r w

and restore it later:

jump-to-register C-x r j

using registers

Upvotes: 12

Greg E.
Greg E.

Reputation: 2742

If you enable winner-mode, you get something akin to a stack-based undo/redo functionality for all your window configuration changes. By default, C-c <left> gets bound to winner-undo, while C-c <right> performs winner-redo.

Upvotes: 20

Related Questions