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
1
vote
0answers
324 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 ...
1
vote
1answer
267 views

Which hooks guarantee proper (re)displaying of windows after windows configuration is changed?

I'm writing a simple minor mode (for personal use) which dynamically sets fringes according to current window width. I added a dedicated function to those hooks: window-configuration-change-hook ...
1
vote
1answer
411 views

How to launch (start) emacs with a single window and choose the buffer of that window as default in the init.el file? [closed]

What statements in the init.el file can be added so that there is a single window shown as the default I have is split into 2 windows vertically aligned (equivalent to typing C-x 1)? Then once there ...
5
votes
1answer
807 views

How to force new `shell` to appear in current window?

Whenever I run M-x shell, a buffer appears almost randomly somewhere - splitting current windows as it sees fit. I cannot work out the logic behind it. The docstring says: (shell &optional BUFFER)...
0
votes
0answers
27 views

Icicles: Why candidates are on the right side?

windows 10 , Emacs 26.1, Icicles In my init.el (add-to-list 'load-path "~/.emacs.d/elpa/icicles") (require 'icicles) (icy-mode 1) And when I type the candidates are show on the right side. Why? ...
3
votes
1answer
161 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 ...
1
vote
2answers
381 views

How fast swap between buffers?

Windows 10, Emacs 25.1 I have 4 open buffers. Here To switch from buffer "file_1.txt" to buffer "file_2.txt" I use standard command windmove-right. It is bound to <M-right>. To switch from ...
1
vote
1answer
160 views

Unable to use ediff with emacs and evil due to window configuration

Running emacs 25.2.2 with evil installed and updated from Melpa. When I run ediff, it asks for usual buffer A and buffer B and then ONLY the ediff buffer in its own frame is visible with 'Type ? for ...
1
vote
1answer
41 views

helm-find-file (and other things) appearing in my main split

I currently have helm installed. Sometimes when I have my window split vertically, when I run helm-find-files, it appears in one of the already open windows, rather than creating a new horizontal ...
2
votes
1answer
144 views

Minimap avoiding change window

Recently I started using minimap-mode, but it has been a bit buggy as sometimes when I split the window and open two different buffers, it won't let me go back to a buffer with code (and minimap). So ...
1
vote
0answers
176 views

Open some file types in new frame

I use split-frame (split-window-right in setup) for most things but would like Emacs to open some file types (specifically PDF files) in a new frame when using find-file. Other files (for example ....
0
votes
2answers
136 views

Split window with new buffer and spawn a new shell in same (possibly remote) directory as old buffer

In tmux, I can press some key combination and split the current window into two windows in the same directory. I've tried the split-window-* function, but found it just duplicates the same buffer in ...
3
votes
1answer
449 views

Splitting window vertically (rather than horizontally) when searching in Dired

My Emacs Dired window is wider than it is tall. After marking some files (say %m *.cpp) in Dired and running M-x dired-do-find-regexp <REGEXP> (A), I find myself in split-window-below (ex split-...
0
votes
1answer
356 views

How to resize vertical split with mouse when using telephone-line instead of mode-line?

According to this StackOverflow answer, one can resize a vertical split with the mouse by dragging the mode-line in a specific spot. I'm using telephone-line and can't find any spot on there to ...
2
votes
1answer
60 views

calc splits wrong window.

I have a problem with using calc. When I have two windows open in emacs, split vertically, calc frequently opens in the wrong window. Here's a demonstration of the problem that I ran with emacs -Q. ...
1
vote
1answer
136 views

emacs split window doesn't avoid other pane content

I'll get terminology wrong here, so be gentle with that (only). cd ~/src/ ./emacs * C-x 2 So I've got two windows here, one above the other, and a bunch of files in my buffer list (more than 2). ...
12
votes
3answers
2k 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 ...
5
votes
2answers
242 views

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

Keyboard macro with occur

In a keyboard macro, there is an occur command. While recording the macro, I switched to the occur window, did some editing, closed occur buffer reverted back to original buffer to continue editing. ...
1
vote
0answers
77 views

Restrict Mode Line display to window

I am configuring mode-line and currently the time is displayed in each window's mode-line, as shown by the image below. Is it possible to restrict the time display to the bottom right mode-line?
2
votes
2answers
204 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 ...
3
votes
2answers
421 views

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

How to open all buffers in the same window and never create new one?

I'm using emacs in terminal via emacs-nox and I wish to sort of disable windows functionality at all. I mean I do not want each time to add some buffer to use display-buffer-same-window function, I ...
1
vote
1answer
277 views

split window horizontally with 1:2

I can set below variable to enable horizontal split window: (setq split-height-threshold nil) (setq split-width-threshold 160) But currently, it will split 1:1, but I wish it split with 1:2, the ...
4
votes
1answer
1k 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
418 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
107 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
875 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
586 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
491 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
177 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* | *...
4
votes
1answer
146 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
190 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) ...
2
votes
0answers
518 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
144 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
223 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
248 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
236 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 ...
2
votes
3answers
405 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
49 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
96 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
110 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
626 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
2k 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
733 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
534 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 ...
13
votes
1answer
2k 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 (...
2
votes
1answer
701 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
796 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 ...
2
votes
1answer
707 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 ...