2022 Developer Survey is open! Take survey.

Questions tagged [display-buffer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

display buffer: split below only once, then reuse

I am trying to tame display-buffer to achieve the following behavior: if I have a frame split once horizontally and then run a function that creates a third window (like help, magit, or similar) I ...
user avatar
  • 308
1 vote
2 answers
41 views

Why does this `display-buffer-alist` rule not do what I expect?

I have the following in the display-buffer-alist list: (("*" (display-buffer-in-side-window ((side . left) (window-width . 110))))) While display-buffer-overriding-...
user avatar
1 vote
1 answer
57 views

Change and later restore the window configuration of a frame

Imagine I have a frame containing some number of windows—sometimes only one, sometimes split in various ways. Now imagine that one of the displayed windows contains an org-mode buffer. What I want is: ...
user avatar
1 vote
1 answer
31 views

Display attachment to mu4e message (a PDF) in the same window rather than new frame

I am using mu4e and pdf-tools. Whenever I go to open an attached pdf (e.g., with gnus-article-press-button) the attachment pops open in a new frame. How can I control where it pops up? Looking at that ...
user avatar
  • 155
1 vote
2 answers
112 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 ...
user avatar
2 votes
1 answer
212 views

Using a predicate function in display-buffer-alist

I want to add a rule to display-buffer-alist, that splits the frame to the right when opening a .pdf file if and only if there is a corresponding .tex file in the same folder. According to the ...
user avatar
  • 231
2 votes
1 answer
280 views

make `display-buffer` open buffer in new tab

The display-buffer function seems to be used quite heavily within Emacs. It has a lot of options to determine where to open a new buffer (a new window, a new frame, an existing window, etc). Emacs ...
user avatar
  • 235