Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs, unsplit a particular window split

Tags:

emacs

elisp

This may be stupid question, but I could not find direct solution to this. I often want to unsplit window as follows

+--------------+-------------+             +--------------+-------------+ |              |             |             |              |             | |              |             |             |              |             | |              |             |             |              |             | +--------------+             |     -->     |              |             | |              |             |             |              |             | |              |             |             |              |             | |              |             |             |              |             | +--------------+-------------+             +--------------+-------------+    +--------------+--------------+            +-----------------------------+ |              |              |            |                             | |              |              |            |                             | |              |              |            |                             | +--------------+--------------+    -->     +-----------------------------+ |                             |            |                             | |                             |            |                             | |                             |            |                             | +-----------------------------+            +-----------------------------+ 

Currently, I start with ctrl-x 1 and then split vertically/horizontally. but my real qustion is how can one remove a particular window split with out disturbing the other window structure? is there any elisp function in built?

like image 436
kindahero Avatar asked Mar 19 '11 04:03

kindahero


People also ask

How do I unsplit windows emacs?

Use the C-x b command or the Buffers menu. Or if you haven't opened the file, yet, use the C-x C-f command to open the new file in a new buffer. To unsplit the window, use the command C-x 1 or right-click on either title bar. The inactive panel disappears.

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.

What is the command to split the screen into two 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 Vim?

Press Control + w , then hit q to close each window at a time.


1 Answers

You can use the C-x0 key combination to delete the current window.

like image 176
Rémi Avatar answered Sep 27 '22 21:09

Rémi