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.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 (...
3
votes
1answer
83 views

How to display *help* buffers below one specific window?

I am (really) new in Emacs and ESS, and I am currently trying to customize my environment. The default settings of ESS[R] are convenient for me, since ESS[R] organizes the windows as follows: --------...
3
votes
2answers
83 views

Open org-mode links to info in different window?

I was wondering if anyone knew of a way to open links to info pages (Emacs manual) from org-mode without changing the current buffer to that info page? The reason I would like to do this is because I ...
3
votes
0answers
106 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 ...
2
votes
1answer
76 views

How to move windows?

How can I move a window from being a horizontal split down below all other windows to being a vertical split panel on the left? I don't want to move buffer contents - I want to move the actual window.
2
votes
0answers
147 views

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 ...
2
votes
0answers
27 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. ...
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 ...
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 ...
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 ...
1
vote
0answers
30 views

How to open two files in two frames on startup?

Here's what I'm trying to make happen: on startup, I want emacs to split vertically into two windows displaying two different files, with my to-do list on the left side of the screen and my notes on ...
1
vote
0answers
21 views

Open code snippet from org-mode with C-' in a vertical split instead of an horizontal one

In org-mode, I open a code snippet with C-' (org-edit-special) to edit it in a separate split. By default, it opens it in a horizontal split. Is there a way to open a code snippet from org-mode with ...
1
vote
1answer
33 views

How prevent `display-buffer` from opening a specific buffer in a new window if and only if it is shown in another frame

I want the *compilation* buffer to not pop up in my main frame when I have it in another frame already open. However if the buffer is not shown anywhere, I do want it to pop up in a new window of the ...
1
vote
0answers
58 views

open buffers from sr-speedbar in previously active window instead of splitting window

I'm using sr-speedbar to manage a list of buffers. After M-x sr-speedbar-toggle, I switch to the speedbar window, press b to switch into Quick Buffer mode, and then press Enter to select a buffer. In ...
1
vote
0answers
57 views

Restore Spacemacs project windows layouts

Opening a project I would like the windows restored as I left them. E.g. tests.py on the left and a terminal /home/projectdir/>$ on the right: |-----------+-----------| | tests.py | >$_ |...
1
vote
0answers
31 views

elisp: create window layout with specific cycling order

I'd like to create a window layout like so: -----------|-------------- a | b -----------|-------------- d | c -----------|-------------- This is so that I can cycle from a ->...
1
vote
0answers
44 views

Why is cursor moving after a save?

When working with the same buffer in multiple windows within one frame, it seems like the location of the cursor in, say, window A gets inadvertently set as a marker such that right after the buffer ...
1
vote
0answers
61 views

migrated from emacs 25 to 26.1: cannot force find-file/counsel-projectile-find-file to always open buffer in current window

Recently I migrated from emacs 25 to 26.1. Before I reached the window behaviour, where I could always open a file at the window at point. The most simple case to illustrate undesired behaviour: I ...
1
vote
0answers
31 views

How to change which window a click in *Occur* buffer affects?

My use case: I am looking at one place in the code in one window (call it window A), have a second window with the SAME code open (window B) in the same frame, together with an Occur buffer, that I ...
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 ...
1
vote
0answers
77 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 ....
1
vote
0answers
61 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?
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 ...
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
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 ...
0
votes
0answers
6 views

Aquamacs: C-x 4 b switches to a different desktop if buffer is already displayed

In Aquamacs, I frequently find myself being yanked out of my focus, concretely and figuratively, if I try to view a buffer which is already displayed in a different frame, often on another desktop. ...
0
votes
0answers
19 views

Is there a way to split-window-right and switch-to-buffer / find-file in single command?

As described in question title. Closest solution that I can find is to use ido-find-file-other-window orido-switch-buffer-other-windew, but these create a horizontal split by default, and if a ...
0
votes
0answers
30 views

Display annotation contents horizontally in pdf-tools *with* live-preview

When looking at annotations with the pdf-annot-list-annotations command from the pdf-tools package, I prefer to preview my annotation contents in a separate buffer, which is the default behavior. ...
0
votes
0answers
26 views

buffer opens in window below if font size is changed

In my config file I changed the line (set-face-attribute 'default nil :height 100) to (set-face-attribute 'default nil :height 90) and suddenly, when I try to open a file in a separate vertical ...
0
votes
0answers
21 views

Ada mode : navigating through code, always open in new window

when I navigate in ada-mode, The first time that I press C-cC-d (ada-goto-declaration), Emacs divide vertically the frame, and open the new file in the other window. Most times, every C-cC-d press, ...
0
votes
0answers
38 views

Save whole emacs session

After closing emacs I would like to restore the same session I left, which includes opened windows, font sizes within the windows and open buffers. I'm aware there's a lot out there, but most things ...
0
votes
0answers
24 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? ...
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 ...