is for splitting an Emacs window into two. Multiple windows can display different buffers, or different parts of one buffer. Emacs has several default key bindings for splitting windows.
Questions tagged [window-splitting]
161 questions
18
votes
4 answers
How can I get a sensible split-window policy?
Emacs is constantly making new windows and it's been ruining my day lately. How can I tell emacs to use the following policy when creating windows?
Prefer vertical splits
Stop doing vertical splits when windows would be less than 80 columns.
Stop…
expez
- 381
- 2
- 8
16
votes
3 answers
Collapse split windows
Given split windows like this:
|------|-------|
|1 |2 |
| | |
|------|-------|
|3 |4 |
| | |
|------|-------|
There are two options to collaps the split windows:
delete-other-windows (Ctrl-x 1)
delete-window…
Beginner
- 2,711
- 3
- 18
- 25
10
votes
4 answers
Switching between horizontal and vertical splitting?
From time to time, by mistake, I split my screen vertically C-x 3 (binded to split-window-right), whereas I originally wanted a horizontal splitting C-x 2 (binded to split-window-below).
Question: is there a function to switch between vertical <->…
Picaud Vincent
- 1,208
- 9
- 21
7
votes
1 answer
How to open new window below _all_ other windows?
Suppose my Emacs frame looks like this:
.-------------.
|a |b |
| | |
| | |
| |------|
| |c |
| | |
| | |
'-------------'
Is is possible now to open another window below all other…
martinoidar
- 137
- 8
7
votes
3 answers
Permanent window with list of opened buffers
Is there some mode where emacs fixes a small window with a list of opened buffers? This is what simpler editors have (kate,gedit,etc).
Here's an example from Kate:
In the left window there is a list of opened files. This is rather independent from…
Fernando César
- 233
- 2
- 5
6
votes
2 answers
C-x 3 open a new buffer to the left of the current buffer
When strike C-x 3, a new window and buffer will open to the right of the current buffer.
How could set it open to the left of the current?
Wizard
- 1,251
- 6
- 17
6
votes
3 answers
Algorithm on deciding splitting vertically or horizontally
When I do M-x compile, emacs will split my window to launch compilation and show its logs in a new window. As I understand, it has some algorithm to decide how to split the window.
So, when I have just one window with code opened on my big monitor,…
Kostiantyn Rybnikov
- 161
- 4
4
votes
1 answer
Split Emacs Screen Three Ways
In my .emacs file I have (split-window-right). This has been working fine so far, but now I'm finding it would be easier if my workspace looked like:
where each box is a separate window. So really I just need to split the right window in half after…
user2154420
- 149
- 2
4
votes
1 answer
Split window buffers
Scenario: I'm working with a horizontal split
---------------------
| File 1 | File 2 |
| | |
| | |
----------------------
and I'm working on File 2.
Question 1: Sometimes when I use a command like M-x…
Shaun
- 177
- 8
3
votes
1 answer
How to control the resulting sizes when splitting a window?
I often split my windows into two with C-x 2. The window in the bottom tends to be the SLIME's REPL or Magit and the one at the top is usually the common lisp file being edited.
I like to have more space for the file to be edited. Thus, every time,…
Pedro Delfino
- 1,489
- 3
- 16
3
votes
1 answer
How to move windows?
How can I move a window from being a horizontal split down below all other windows to being a vertical split panel on the left? I don't want to move buffer contents - I want to move the actual window.
Martin
- 143
- 5
3
votes
2 answers
How to force 'Ctrl-X, Ctrl-B' to always split vertically?
Once upon a time, Choose Window (invoked by C-x C-b) used to always split the window vertically.
Starting from a certain Emacs version (I can't recall which one), that split is now either vertical or horizontal, depending on the containing windows…
datv
- 133
- 4
2
votes
0 answers
How to control the direction of collapse with `C-x 0` or `delete-window`?
This is a follow up to this emacs stackexchange question:
Given split windows like this:
|------|-------|
|1 |2 |
| | |
|------|-------|
|3 |4 |
| | |
|------|-------|
With C-x 0 (or the command…
Inspired_Blue
- 318
- 2
- 12
2
votes
1 answer
How to prevent some new buffers from splitting the window?
Is it possible to have new buffers created by a spesific command (vc-diff for example) use the same viewable area as the current buffer?
Currently it creates a split window, which I need to manually close after using the buffer and deleting it.
ideasman42
- 8,786
- 1
- 32
- 114
2
votes
2 answers
When split-window-sensibly is called, how to make the decision depend on the width height ratio?
I would like to have split-window-sensibly splitting the window horizontally if the width is larger than height, or vertically otherwise. How can I achieve this?
xuhdev
- 1,899
- 14
- 31