Questions tagged [window-splitting]

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.

Useful Links:

159 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

Prefer vertical splits over horizontal ones

There are several questions similar to this one. I have read them all and they don't provide an answer for my scenario. I want emacs to prefer vertical splits (splitting windows into left and right parts) over horizontal ones, even if both…
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,661
  • 3
  • 17
  • 25
13
votes
1 answer

Open helm search result in a new window?

Commands like helm-projectile-grep, helm-swoop, projectile-find-file are extremely useful for jumping around code. However, so far I've not found how I can open a search result in a new window (instead, right now pressing RET with a search result…
space_voyager
  • 709
  • 5
  • 19
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,158
  • 8
  • 20
8
votes
1 answer

How can I tell Emacs to always open help buffers in the current window?

When looking up documentation with describe-function, Emacs display the docstring in a temporary help buffer. I want this buffer to replace current window. So far, I've customized help-window-select but it only affect the focus.
Mathieu Marques
  • 1,953
  • 1
  • 13
  • 30
8
votes
1 answer

desktop-save-mode fails to save window layout

I use Emacs 24.5.1 on OS X in terminal mode. I intend to use desktop-save-mode to save and restore window layout (i.e. positions of buffer windows) upon exiting and starting Emacs. From this answer and its comments, people suggest that recent…
skyork
  • 211
  • 2
  • 5
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…
7
votes
1 answer

Force new window to open to the left or right

I have two frames open with the following window splits: Frame 1 Frame 2 |---+---+ |------| |a |b | |d | | | | | | |---+---+ | | |c | | | |---+---+ |------| Say that I am in window "a" or "b". Sometimes when I call…
Lorem Ipsum
  • 4,327
  • 2
  • 14
  • 35
7
votes
4 answers

Open file from dired in the same window -- using the mouse

How do you configure emacs to open a file in the current window -- using the mouse -- when it is selected from a dired buffer? That is, when I open a directory and then select a file with the mouse I want the file displayed in the same window which…
Jim
  • 73
  • 1
  • 3
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?
AbstProcDo
  • 1,231
  • 5
  • 15
6
votes
2 answers

Display all/current CSV heading names

In CSV files (especially ones with a lot of columns and/or a lot of rows) I find that it's hard to tell which column I'm on. Normally I'd like to know either the column heading, or sometimes the column index (usually I want the index only if there…
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,…
6
votes
1 answer

open helm selection in horizontal split

I'm switching from vim and so far everything is going smoothly. One thing I'm sorely missing is ctrlp's functionality for opening the selected file in a horizontal split with C-x or vertical split with C-v. What's more, I was able to select multiple…
Jorge Israel Peña
  • 1,265
  • 9
  • 17
1
2 3
10 11