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

Sensible stack-like quit-restore behavior in side-window?

How can I get sensible stack-like behavior from a bottom side-window? I've configured both Ag and Help to display their buffers using display-buffer-in-side-window. I like to maintain a window ...
3
votes
2answers
834 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*/*...
2
votes
0answers
109 views

Prevent text jumping up the screen when dismissing Swiper

Swiper creates a minibuffer many lines in height. This height is borrowed equally from my existing, vertically-arranged, windows. When Swiper is dismissed, this space is recovered by the windows and ...
0
votes
1answer
612 views

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 ...
4
votes
1answer
525 views

Completions buffer messes up window sizes

I am not sure what to search for. I have used emacs for 25+ years, but I am not a guru. I use it as a tool, and I don't want to spend much time changing it. I generally like to have one window, or ...
2
votes
0answers
239 views

ECB - avoid opening new windows

I use Emacs for programming and I have ECB; this package works very well for me except with some commands; the problem arises when a command tries to show its result in another window (e.g. rtags's ...
1
vote
1answer
649 views

Auto-resize window widths to accomodate line length

What is an easy way to automatically resize a window (height and or width) according to the length / line length of the buffer? Possible behavior: A frame split horizontally with two windows with the ...
3
votes
2answers
781 views

How to disable Spacemacs from auto-balancing the split windows?

I am using Spacemacs and after using the splitting windows feature, either by splitting horizontally or vertically, Spacemacs always try to balance the split windows. For example, when pressing C-x 3 ...
1
vote
1answer
564 views

Is it possible to open file then load slime automatically?

So I start up emacs open foo.lisp then I would start slime and the window splits nicely. Except I don't want to start slime manually. So is it possible to switch to or startup slime when I open an ...
4
votes
0answers
972 views

Org-Mode Agenda Open in Left Window by Default

With a vertical split (C-x 3), regardless of which buffer I am in, C-c a opens the agenda on the right window, pushing my org file into the left window. Is it possible to have the agenda open into ...
4
votes
1answer
746 views

Split window buffers

Scenario: I'm working with a horizontal split --------------------- | File 1 | File 2 | | | | | | | ---------------------- and I'm working on File 2. Question ...
2
votes
1answer
206 views

Change which buffers are in which windows?

I have 3 windows opened and I want to change which buffers they display. For example: when programming in C, I want to have the C code on the left, and the right side split into two windows showing ...
5
votes
2answers
1k 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 ...
2
votes
0answers
226 views

Emacs window configuration like awesome wm

Does there exist anything like awesomewm window configurations in emacs? For example, having custom layouts for two windows, maybe 1, 2, and 3, the first being even vertical split, the second even ...
7
votes
1answer
1k views

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 ...
2
votes
2answers
497 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?
4
votes
1answer
500 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
155 views

How could I get alchemist to always open its test report in a window at the bottom?

alchemist.el has functions for running tests. These functions use display_buffer to show test results. Is there a way to ensure that all Alchemist test results open in a window that is the bottom-most ...
6
votes
1answer
1k views

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 ...
3
votes
1answer
251 views

Magit popups no longer behaving as popups (in my setup)

I like to have my emacs set up as one full-screen frame with two side-by-side windows at all time. To do this, I've used this code to force emacs not to split windows arbitrarily: (defun never-split-...
1
vote
1answer
577 views

How to default markdown-mode's markdown-live-preview-mode to vertical split

Using markdown-mode, I can run M-x markdown-live-preview-mode (or C-c C-c l) and it will split the window horizontally and display the rendered markdown (i.e. the HTML) with eww in a window below the ...
2
votes
1answer
288 views

Always pop window into frames

When I use tuareg I like to have the toplevel in a separate frame, but as soon as I evaluate some code in the original frame the toplevel window reopen in that frame and that's not what I wan't. More ...
6
votes
3answers
3k views

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 ...
0
votes
1answer
77 views

Cursor getting stuck after splitting windows horizontally

Recently I have started to split my Emacs windows horizontally. However, when I do this, moving the cursor down frequently raises the following error: posn-col-row: Wrong type argument: windowp, #<...
1
vote
1answer
601 views

Define the behaviour of help window?

When I'm looking for documentation or information, I press C-h and then f or k or anything else. Then a help window will pop up. I was wondering if I could configure the help window, that he will ...
3
votes
1answer
768 views

Auto adjust window width based on number of windows?

If i run C-x 3, when emacs starts up it will split window and creates two windows of equal size like this Now i run C-x 3 again it will split current window into two parts resulting in this ...
3
votes
1answer
718 views

Show Helm candidates at left, immediately above minibuffer

If I split a frame vertically, keep point in left split and press M-x, minibuffer will be on bottom and M-x will be in left corner like this. This is very convinient as I can 'see' what I am typing ...
13
votes
2answers
1k views

Collapse split windows

Given split windows like this: |------|-------| |1 |2 | | | | |------|-------| |3 |4 | | | | |------|-------| There are two options to collaps the split ...

1 2
3