7 votes
Accepted

Prevent buffer from being displayed

It was added in Emacs 24.4: (defun display-buffer-no-window (_buffer alist) "Display BUFFER in no window. If ALIST has a non-nil `allow-no-window' entry, then don't display a window at all. This ...
user avatar
  • 43.8k
5 votes

Managing multiple windows and buffers?

I also had difficulties with managing windows in a large frame, so I wrote this package named Purpose, which uses display-buffer-overriding-action to manage windows instead of display-buffer. ...
user avatar
  • 1,683
4 votes
Accepted

async-shell-command: run COMMAND without displaying the output

Try this: (add-to-list 'display-buffer-alist '("*Async Shell Command*" display-buffer-no-window (nil))) The buffer is still created and it still gets the output of the command (or the error output): ...
user avatar
  • 20.4k
4 votes

How to control where the org todo keywords buffer displays?

Sigh. I found a "solution," but it's an ugly one that requires overwriting an existing org function. I would prefer one that does not require modifying the org source code, but am putting the ...
user avatar
  • 31.1k
4 votes
Accepted

How to conditionally reuse the current window to display a buffer?

While @Drew's solution works as I wanted, I was looking for a generic solution that I can apply to multiple cases; not just to *Messages* buffer. Step 1: General Setup Advise display-buffer to not ...
user avatar
  • 24.3k
4 votes

How to conditionally reuse the current window to display a buffer?

(defun foo () (interactive) (unless (equal "*Messages*" (buffer-name (window-buffer))) (display-buffer "*Messages*" (if (one-window-p) 'display-buffer-pop-...
user avatar
  • 70.3k
3 votes

Pop up new frame (with only one window and frame) to show specific buffers

Here is a simple way to make Emacs show certain buffers in their own frame, by default. (And that frame will be reused when you refer to its buffer.) Customize option special-display-buffer-names or ...
user avatar
  • 70.3k
3 votes

How to control where the org todo keywords buffer displays?

I recently figured out how to make Org-mode capture in a new frame. Modifying that code to use your function is pretty straightforward. Here's how I'd do it: (defun my/org-todo-window-advice (orig-...
user avatar
  • 2,604
2 votes

How to control where the org todo keywords buffer displays?

Looking in someone else's config, I found a way to control where *Org Src.* and *Org todo* buffers appear. Now when I hit C-c C-t or C-c ' these buffers display in a new window at the bottom of my ...
user avatar
2 votes
Accepted

how to modify buffer display behaviour?

Citation of my comment: Did you really try M-x (display-buffer "*Messages*")?? It works for me with your entry in display-buffer-alist and "*flycheck errors*" replaced by "*Messages*"! Could it be ...
user avatar
  • 30.4k
2 votes

Can window-height be ignored in display-buffer-alist after initial creation?

This can be done by wrapping display-buffer-reuse-window' to filter out the window-height from the alist, so it's only used for other functions (in this case display-buffer-below-selected'). (defun my-...
user avatar
  • 7,267
1 vote

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

The condition needs to be a regular expression, but "*" is not a valid regular expression. If you want to match all buffers, you need ".*" (or perhaps an empty string).
user avatar
1 vote

Using a predicate function in display-buffer-alist

try : (setq display-buffer-alist '((cst/latex-pdf-p (display-buffer-reuse-window display-buffer-in-side-window) (side . right) (slot . 1) ...
user avatar
  • 11
1 vote
Accepted

Prevent other-window from choosing side window

I stumbled upon the answer in the documentation for Frame Layouts with Side Windows. Ultimately, I needed to set the no-other-window window parameter in my side windows. display-buffer-in-side-window ...
user avatar
  • 111
1 vote
Accepted

How to configure a command to open in same-window unless already open in active frame?

display-buffer-alist actions can be multiple functions (a list of functions), the first one which returns non nil is used. So you can use: (add-to-list 'display-buffer-alist '("*grep" (display-...
user avatar
  • 4,276
1 vote

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

Thanks @Drew for your answer, but it did not work (maybe I did not made it correctly :-)). I tried to add this in my .emacs file: (setq special-display-buffer-names '("*Help" "*help[R]*" "*Help*...
user avatar
1 vote

Org-mode 2-pane writing setup using indirect buffers (or display-buffer-alist

There's now org-sidebar and org-sidebar-tree. https://www.reddit.com/r/orgmode/comments/dbsngi/finally_solving_the_lack_of_a_treeview_navigation/
user avatar
1 vote
Accepted

Org-mode 2-pane writing setup using indirect buffers (or display-buffer-alist

A code snippet by @blujay posted here got me through. I made a few minor edits to narrow the org file to specific heading (posted here).
user avatar
1 vote

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

The global value of window-configuration-change-hook is called once for the modified frame, and can be used to iterate over all the windows using walk-windows
user avatar
  • 4,119
1 vote
Accepted

How to control where the org todo keywords buffer displays?

Not related to fixing the buffer location but you can make the todo selection appear in the smaller minibuffer via (setq org-use-fast-todo-selection 'expert) The default 'auto value displays the ...
user avatar
  • 56

Only top scored, non community-wiki answers of a minimum length are eligible