Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 734
banjomonster Avatar asked Jun 19 '12 17:06

banjomonster


People also ask

How do I unsplit windows emacs?

You can split a window horizontally or vertically by clicking C-Mouse-2 in the mode line or the scroll bar.

How do I unsplit a window in Vim?

If you want to reset the size of all split windows, use “Ctrl + W”, then “=”. It's also possible to tell the size of the split. By default, Vim offers equal width/height of each split.

How do I move a window in Emacs?

With the keyboard, you can switch windows by typing C-x o ( other-window ). That is an o , for `other', not a zero. When there are more than two windows, this command moves through all the windows in a cyclic order, generally top to bottom and left to right.

How do I open a second window in Emacs?

To open a new frame, select Make New Frame from the Files menu or press C-x 5 2 (for make-frame). Emacs makes a new frame containing the current buffer and puts it on top of the current frame.


3 Answers

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

like image 124
Nicolas Dudebout Avatar answered Oct 18 '22 02:10

Nicolas Dudebout


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.

like image 34
Greg E. Avatar answered Oct 18 '22 04:10

Greg E.


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

like image 45
Jürgen Hötzel Avatar answered Oct 18 '22 04:10

Jürgen Hötzel