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.

Filter by
Sorted by
Tagged with
5
votes
1answer
719 views

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 ...
7
votes
3answers
802 views

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 ...
1
vote
1answer
356 views

Open several files in a specifc layout with a shortcut

I would like to open in emacs, with a shortcut/bookmark three files in this configuration: _____________ | | B | | A |___| | | C | |_______|___| A is my main editing file, B is for ...
2
votes
2answers
720 views

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 ...
0
votes
2answers
568 views

Is there a better way to override opening window in compilation-goto-locus?

I don't like the behavior of compilation-goto-locus (bound to Enter in a *compilation* or *grep* buffer), where it splits the window and jumps to the line in a new window. I prefer the *compilation*/*...
5
votes
2answers
395 views

Workspace configuration

I'm working with Emacs on several different projects with several different languages. I'm seeking for solution that could help manage project as workspace. Meaning Understand language in use and ...
4
votes
1answer
382 views

Let switch-to-buffer to already open buffer switch to that window, rather than open it in this one

Is there a way to make switch-to-buffer more dwim in this regard? Let's say I have two windows with foo.el and bar.el open. With my point in foo.el, if I switch-to-buffer and open bar.el, I'd like to ...
2
votes
2answers
356 views

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?
2
votes
1answer
251 views

How can I force emacs to never split frames, in particular for compile-goto-error?

I want emacs to always display new buffers in the current frame, but always taking the whole frame, rather than splitting it. I currently have customized display-buffer-alist to the following '(...
3
votes
1answer
67 views

Have compilation errors / grep match reuse current frame/window without ever splitting it?

I have searched in a number of places (1, 2, 3, 4) even looked at the e-lisp source files and could not figure out how to do, so I ask. Context I have bound next-error to a key. I'm in some source ...
3
votes
1answer
764 views

How to open multiple files without automatically activating the “Buffer List” split?

Running emacs with multiple files automatically opens the "Buffer List" split-window. eg: emacs -Q *.txt Opens a split window, one which contains a list of buffers. How can multiple files be ...
2
votes
2answers
116 views

replace-buffer-in-windows issues in switching from emacs 24.5 to emacs 25.2

I installed Emacs 25.2 on a new system and cannot get the desired behavior with killing buffers when an Emacs frame is split into multiple windows. For example, I have C-x 3 bound to a variation of ...
1
vote
0answers
223 views

Emacs 26-1 Problems : find-file and neotree

The Problems: I just did a full re-install to Fedora 29, which included the dnf install emacs command. This installed emacs 26-1; formerly I was using emacs 25.2. Formerly, my emacs initialization ...
0
votes
3answers
502 views

How to force the window splitting direction when starting slime?

When I use emacs in a separate Window (under X), if I start slime the window is split horizontally if the window's width is smaller than its height, and vertically otherwise. Is it possible to force ...
0
votes
0answers
139 views

compile-goto-error: be more consistent in choosing a window for display

I have a main window displaying buffer A, and bottom window displaying some project-wide search results. ┌───────────┐ │ A │ │ │ ├───────────┤ │ results │ └───────────┘ Hitting ...