Questions tagged [window]

In Emacs, a window is one part of a frame, displaying one buffer. For questions about operating system windows, see the tag 'frame.

Filter by
Sorted by
Tagged with
1 vote
1 answer
313 views

which-key takes up entire lower half of the screen (possibly related to package zoom)

Suddenly which-key, when triggered, takes up the entire lower half of the screen although only a portion of that is then filled with information. This behaviour started a couple of days ago, but I did ...
3 votes
1 answer
138 views

Emacs 25.3.2: reverse windows on files opening

If I open 2 files by command line: emacs file1 file2 in Emacs 25.3.2, file2 is opened in the upper window and file1 in the lower. This didn't happen in previous versions of Emacs that had the ...
3 votes
2 answers
2k views

Can't get rid of scratch buffer at startup for Emacs 26.3

I am using GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29. In my .emacs I specifically asked not to show the startup screen or buffer *scratch*: (custom-set-variables '(inhibit-startup-...
1 vote
0 answers
32 views

How to set the window size of a particular buffer to spawn?

For example, when programming, say I want to open the repl shell for the source file that I'm editing, each time the window size of repl shell buffer occupies half of frame size after spawned. I then ...
1 vote
1 answer
44 views

What's an easy way to view a copy of a text buffer as a hexl buffer

I sometimes want to look at the hexl-mode view of a text file buffer in one window and in another window I want to keep the original text view. What's an easy procedure to do so? -- Due to the fact ...
0 votes
1 answer
115 views

How do I specify the window height of the Python interpreter?

Suppose I am editing a file in python-mode. If I start the Python interpreter using M-x run-python (or C-c C-p), the Python interpreter opens in a window (*Python*) in the bottom half of the frame. ...
1 vote
1 answer
48 views

Burying a buffer shows an already displayed buffer

ISTR that quit-window and bury-buffer made sure that the replacement/newly displayed buffer is not shown in any other window (at least that was my intention when I wrote quit-window many years ago). ...
0 votes
1 answer
115 views

Controlling Behaviour of (Compilation) Window Creation

How do I control whether the output buffer *Compile* of M-x compile will be shown in an existing window or in a new window by splitting an existing window ? My problem is that the compilation buffer ...
5 votes
1 answer
2k 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
1 answer
61 views

Is there a library to make `'evil-goto-mark` restore the screen position of the marker?

I use emacs and evil. If I set a marker using 'evil-set-marker, scroll elsewhere in the file, and then execute 'evil-goto-mark or 'evil-goto-mark-line, the window will scroll back until the position I’...
5 votes
3 answers
4k views

Customizing the line separating windows

After % emacs -q (split-window-right) (scroll-bar-mode 0) (fringe-mode 0) there is still a pixel-wide line separating the two windows. What is this line called, and how can I change its width and ...
0 votes
0 answers
17 views

Is it possible to draw internal border boundaries (in a way window-divider-first-pixel draws it)

I use internal-border-width with right-divider-width to add some "light" within the frame and visually separate windows. By setting internal-border (background) and window-divider (...
0 votes
1 answer
38 views

Window configuration overwritten on minibuffer close

Here's a really nasty Emacs bug that has pained me for a long time. In tab-bar-mode with two tabs open (call them "tab X" and "tab Y,") Open tab X. Do C-f or a similar command ...
2 votes
1 answer
44 views

Flatten parallel nested window trees

Sometimes when moving windows around in emacs, it will get to a state where there is a horizontal or vertical stack of windows which appears to be a single list, but is actually made up of multiple ...
0 votes
1 answer
65 views

How can I open lsp-find-references using split-window-vertically?

I have new windows be opened in a split-window-horizontally way, but I want this specific lsp-find-references to be opened with split-window-vertically. Is there any way to set this preference for ...
4 votes
2 answers
707 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 (...
128 votes
14 answers
81k views

How to switch between windows quickly?

How do I switch between windows quickly? I often have multiple windows open and need to switch between them. Right now, I use C-x o to get to the one I want. Is there a more efficient workflow ...
3 votes
1 answer
298 views

Define the window location of the output of shell command

I use M-! to run the command shell-command. The output will open the buffer in a new window at the bottom. Can I configure it to appear on the right?
0 votes
1 answer
420 views

How can I split the neotree window in spacemacs/emacs

I want my neotree window not to extend all the way to the bottom as shown here. How is that possible? If I try to split it I get an error saying the side window can't be split.
2 votes
5 answers
390 views

Dired: How to open file with ace-window while keeping focus on dired buffer?

I have this Elisp code that allows me to use ace-window to open a file in a selected window from Dired: (defun find-file-dired-ace-window () "Use ace window to select a window for opening a ...
0 votes
0 answers
8 views

Emacs (maybe helm?) prefers buffers that aren't visible - how to change this?

When switching buffers, emacs seems to prefer buffers that aren't already visible. For example, normally when I'm editing and switch to another file, when I C-x b, the buffer I was last in is at the ...
1 vote
1 answer
94 views

How to distinguish a scroll from a change of buffer in a function called from ‘window-scroll-functions’?

I've written a function that recenters the point each time it makes a long jump and I added it to the hook window-scroll-functions. The length of the jump is determined by comparing the return value ...
3 votes
1 answer
266 views

Move the fringe indicators close to the window text

When I use olivetti-mode I'd like to have grey margins and the fringe indicators close to the window text, like in this picture: The problem is that when the fringes are wide the indicators end up ...
0 votes
1 answer
62 views

Emacs sometimes open window with warnings, how to prevent that? (see screenshot)

When I open a buffer, sometimes the window is getting split and another buffer opens up at side with a warning or message inside it. This is new behaviour. I am not been able to track consistently ...
0 votes
1 answer
36 views

Calculator App Change default Window Height

I'm quite inexperienced in Emacs and Elisp, but I've already made some good shameful things happen. So I'm able to resize the Calculator App Window Size by setting the calculator-mode window-resize to ...
11 votes
3 answers
4k views

How to get org-agenda to prefer split-window-right

After upgrading to Emacs 24.4.1, when I call org-agenda with no splits it will show on the bottom half of the frame. Previously, it would show on the right half. How do I configure this behaviour?
0 votes
0 answers
18 views

Gnus: show original article when replying

When I hit r (or f/F/R) in a gnus summary, I get a fullscreen view of the unsent Message. Is there some builtin way to put the new Message buffer in the window that had the Summary buffer, so I can ...
3 votes
1 answer
62 views

Permanent two-horizontal-windows configuration

I want my emacs frame to be permanently split into two (or sometimes 3 - with a different monitor - but let's talk two for now) columns of windows. E.g., C-x 0 and C-x 1 may only affect the windows in ...
0 votes
1 answer
38 views

Switch between 2 windows?

I'm JUST starting out emacs. On the right half of the screen I have the interpreter and on the left half of the screen I have my code. I want to switch between these 2 using keyboard only (shortcuts). ...
0 votes
1 answer
48 views

Window displaying up to a certain column

Would it be possible that for a particular window width, I can automatically adapt the text to show up to a certain column number? If possible not via face attributes but using text-scale-mode at ...
2 votes
2 answers
70 views

Distance From the Top Edge of the Window to the Point

Anyway to calculate it? (either in lines or pixels) E.g., +-------------------+ 4| | <- top line 5| | 6| | 7| ■ <- cursor here. | Here it ...
0 votes
0 answers
20 views

Find out what created the window?

dap mode keeps creating unwanted window, I'd like to prevent it but can't find a way I can think of setting a breakpoint on window-creation. But there seems to be a lot of those split window functions....
0 votes
0 answers
14 views

How can I disable restoring Workgroups for Windows (for Emacs) on startup?

I'm trying to figure out how I can disable the restoring of windows when I start Emacs. I've asked the project, but it seems this project is not maintained anymore. Workgroups for Windows (for Emacs) ...
0 votes
0 answers
20 views

How to make grep buffer replace eshell buffer in current window?

When you grep in eshell, it spawns a grep buffer and displays it in a separate window. I'd like to have it simply display in the same eshell window (replacing the eshell buffer -- same as when you do ...
1 vote
1 answer
18 views

ESS with R sessions in different frames

When I have two frames open with different R sessions in each, such as +------------+------------+ +------------------+ | # file.R | | | | | 1+4 | ...
1 vote
1 answer
66 views

Printing margin size of all windows [closed]

I am writing a minor mode that changes the margin width when multiple windows are shown at fullscreen. I would like to list the values of the margin sizes for each window in a frame using elisp code. ...
26 votes
5 answers
5k views

Hide *compilation* window

It is annoying to see the compilation window appear when it is successful. How to remove that automatically? I want to see it though if it is not successful.
0 votes
0 answers
16 views

How to get `C-h m` to show its output in the same window?

When I type C-h m in dired mode, it opens in a different window. I'd like it to open in the same. How can I do this? In the future, is there an internal reference for questions like this that is quick ...
1 vote
1 answer
418 views

How to switch to `flycheck-list-errors` buffer/window/minibuffer?

For starters I use Doom Emacs. Here's the scenario: I have a python/perl/js buffer and flycheck-mode activated. Flycheck does its job and tells me that there are some errors that need attention. I go ...
0 votes
1 answer
168 views

Which GNU Emacs command resizes visible windows to equal sizes?

tmux has ctrl b, shift e, to equalize pane sizes. Does GNU emacs have similar to equalize window sizes?
0 votes
1 answer
52 views

How can we customize the font size of the window-number in `ace-window` mode?

The font face of the window labels in ace window seem to have the same size as that of the text in the buffer, which is in general too small for me to allow for quick visual parsing. I was hoping that ...
1 vote
1 answer
79 views

Why I cannot quit the window using `quit-window`?

Say I have two existing files named "file1.el" and "file2.el". Then I perform the following steps: I open a file named "file1.el" C-x C-f a file named "file2.el&...
0 votes
0 answers
87 views

recenter'ing a window that does not display current-buffer

I am facing a recurring problem with recenter in Emacs. Sometimes, when I execute recenter, it doesn't work and I get the following message: recenter'ing a window that does not display current-buffer. ...
0 votes
0 answers
66 views

How to have transparency in frames, but disable transparency in PDF windows?

Basically what the title said. I like to have some transparency. (got it with following line) (add-to-list 'default-frame-alist '(alpha 95 95)) However, this makes PDF buffers also transparent, which ...
0 votes
0 answers
76 views

New windows open below (horizontal split) by default

Before, I used to have that windows would open on the right of my current window for things like M-x man and M-x shell. Now I have that they open below. All I've done is uninstall and reinstall my ...
4 votes
5 answers
2k views

How to close help buffer without moving to it?

I often use Emacs' help buffers, via e.g. C-h k. Buffer *Help* is displayed in another window, and that window is not selected. In order to close the *Help* buffer, I need to switch windows via C-x o ...
4 votes
0 answers
193 views

Help: delete-other-windows only working from the original window

Overview I'm having trouble understanding from my current config why C-x 1 (i.e., M-x delete-other-windows) does not work when executed from a window in a project that was created as a result of ...
2 votes
1 answer
81 views

Swap 2 Windows Associated by “Follow Mode”

Say a frame is split (by C-x 3) into 2 windows that both display the same buffer. If I enable follow-mode, the left window will always display the content closer to the beginning-of-buffer than the ...
0 votes
2 answers
179 views

Why does Emacs hold on to a not common sense meaning of the words: frame and window?

Below voluminously explained the context of the question stated in the question title: I have started to use Emacs very intensively some days ago and are still bumping into doing things the wrong way. ...
2 votes
1 answer
27 views

how to get ace-window to do row-major numbering of windows?

I use ace-window, and when I have at least two rows and columns of windows. When I invoke ace-window, it does column-major ordering of the windows: |----------+----------| | | | | ...

1
2 3 4 5
9