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
2answers
266 views

Split helm window in different directions

I'd like helm-buffers-list to split my window horizontally, but I'd like for all other Helm functions to split it vertically. Is this possible?
1
vote
0answers
72 views

Bookmarks: how to display both file content and bookmark annotation without closing the *Bookmark List* buffer window?

When in my *Bookmarks List* buffer (Bookmarks vanilla), I can place point on a bookmark, and call the function bookmark-bmenu-switch-other-window. This will open a second window, to the right, showing ...
3
votes
1answer
581 views

Open vertical splits to the right

Using spacemacs with Evil. :vsp opens a new split vertical, but it always does it to the left. How can one configure it to open them to the right?
2
votes
1answer
373 views

How do I start emacs with one horizontal split and one vertical split

Every time I start Emacs, I want two windows, side by side, and one terminal/shell window below them both, as shown here. Please help me with the necessary code to my init file.
1
vote
2answers
301 views

using shackle to split current window instead of root

I want to write a shackle rule to split the current window (top/bottom) instead of splitting the root window to display the new buffer. Here is what I'm getting: +-------+--------+ | |current |...
5
votes
1answer
144 views

emacs home made perspective: source + eshell + compilation

I want such functionality from emacs (gnu 25), I press key in any buffer with source code, and instead of one buffer I got 3 buffers on the screen: source code buffer ------------------ *eshell* | *...
2
votes
1answer
98 views

can other-buffer in split windows select a visible buffer?

I often swap 2 most latest buffers back and forth with (switch-to-buffer (other-buffer)). This works just fine in most situations. However, when I have 2 split windows, and the other window is ...
2
votes
1answer
90 views

How can I generate a buffer and render html in it?

I want to make a buffer in a new window (but not pop to it) insert HTML code in it, and render its content with shr-render-*. Yes, an HTML preview window, let me know if you know of a (simple) ...
1
vote
0answers
384 views

How to prevent emacs from popping up with new frames in response to dedicated windows? I would much rather it split the existing window

I've recently started using dedicated windows because I have certain windows (a python interpreter, sometimes a PDF of a LaTeX document), that I do not want obstructed under any circumstances. This ...
1
vote
1answer
106 views

How can I create a new frame that does not inherit the splits from an existing frame?

From time to time I like to pop open a new frame (GUI window) with cmd + n which gives me a new frame. However if I create a new frame and I have an existing frame with 2 splits the new frame also is ...
2
votes
1answer
160 views

Is there a way to configure default window split positions when interacting with commands?

I always enjoyed horizontal splits when interacting with C-h k or a magit commit window, or anything like that. Now I'm seeing vertical splits when I interact with those commands. Is there a way to ...
0
votes
1answer
207 views

golden ratio splits too narrow when having a vertical split on a horizontal portion

When I have a split as such +++++++++++ | | +++++++++++ |b |c | | | | +++++++++++ Focusing in the a column works as expected, but for this layout +++++++++++++++++++ | | ...
0
votes
0answers
138 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 ...
1
vote
2answers
337 views

Control window splitting while opening on files with helm

I am trying to be able to control where a new window should go, when I use helm-find-files. I am aware of split-height-threshold and split-width-threshold, and it works if I set them to behave ...
1
vote
1answer
45 views

Split a special windows in horizontal

I have known using (setq split-width-threshold 1) splitting windows in horizontal by default. But I want to only split a window such as slime in horizontal and other window is vertical by default. ...
2
votes
0answers
59 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 ...
2
votes
0answers
74 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
351 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 ...
3
votes
1answer
918 views

Is it possible to open links in another buffer (Org Mode)?

i often make links in Org Mode to files, which should open in emacs, but in another buffer than the one, which contains the link. It would be the best, if they open in a buffer next to the one I work ...
0
votes
3answers
501 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 ...
4
votes
1answer
396 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 ...
9
votes
1answer
904 views

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

Open Ibuffer selected buffer in other existing window

I tried everything but again I'm hitting a wall here. I have one frame split in the middle with a vertical line giving me a window left and right. Now I have Ibuffer open in the left window and I just ...
3
votes
2answers
608 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
349 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
0answers
646 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 ...
1
vote
1answer
314 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 ...
2
votes
1answer
200 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
393 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 ...
1
vote
0answers
183 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
702 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
355 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
380 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 ...
1
vote
1answer
702 views

How to get the buffer's visible width?

I'm trying to write something that will disable a certain mode (fci-mode) if a buffer's visible width is under a certain amount. I know about the (window-width) function, however, that doesn't change ...
2
votes
2answers
133 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 ...
13
votes
3answers
2k views

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 ...
3
votes
1answer
194 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
495 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 ...
4
votes
1answer
663 views

Split window buffers

Scenario: I'm working with a horizontal split --------------------- | File 1 | File 2 | | | | | | | ---------------------- and I'm working on File 2. Question ...
5
votes
1answer
714 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 ...
1
vote
1answer
446 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 ...
0
votes
2answers
566 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
1answer
223 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 ...
0
votes
1answer
71 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, #<...
2
votes
2answers
715 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 ...
2
votes
0answers
209 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 ...
7
votes
3answers
1k views

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 ...
6
votes
3answers
2k 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 ...
1
vote
1answer
412 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 ...
4
votes
2answers
595 views

Neotree window permanently resizes other windows

I usually have my emacs frame something like this: | | | | <window 1> | <window 2> | | | | When I open neotree, it then looks like this (...