Questions tagged [display-buffer-alist]
The display-buffer-alist tag has no summary.
29 questions
0
votes
1
answer
62
views
Removing Help entries from display-buffer-alist
I want the ability to remove Help buffers from display-buffer-alist.
And I am getting
and: Symbol’s value as variable is void: \"\\*Help\\*\"
Here is the function
(defun qhelp-frame (&...
1
vote
0
answers
50
views
How to display dap-ui windows in a new frame using display-buffer-alist
I am trying to display small dap-ui windows such as dap-ui-sessions in a seperate new frame.
I managed to write a function to create a new frame on the second monitor:
(defun my-debugger-frame ()
&...
0
votes
1
answer
121
views
display-buffer-alist action conditional on major mode
When opening a new buffer, I want to ensure that:
All non-inferior-ess-r-mode buffers are displayed in a new window to the left of the focus buffer
All inferior-ess-r-mode buffers are displayed in a ...
0
votes
1
answer
125
views
display-buffer-alist does not seem to work
The aim is to display a buffer named *navigator* in a side window at the bottom.
I have following code.
;; the function toggle-navigator is in another directory being imported as a package.
;; it is a ...
1
vote
1
answer
204
views
emacs display layout for windows of bottom and right sides
With the following code, emacs split sides windows like:
;; -------------------------------------
;; | | * |
;; | | h |
;; | ...
1
vote
2
answers
611
views
How to reuse a window in another frame for display-buffer
I like to have the Help buffer in a some frame (with some other windows) and I try to reuse this window in this frame even when I am in another frame and issue a help command.
I tried setting
(setq ...
0
votes
1
answer
745
views
How to use "display-buffer-no-window" with "display-buffer-alist"
I wrote a simple function for Emacs that ends in calling async-shell-command with a music player. All good so far, but the command pops up the standard-out buffer.
Its help text reads (among other ...
1
vote
0
answers
330
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 ...
1
vote
2
answers
636
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-...
2
votes
1
answer
205
views
Can window-height be ignored in display-buffer-alist after initial creation?
Currently I'm using the following display-buffer-alist,
which works fine but resets the size on opening a new window.
Is there a way to only use the window-height when first creating the window? After ...
1
vote
0
answers
342
views
Catch popup buffers by major-mode with display-buffer-alist?
I would like to catch popup buffers with display-buffer-alist by their major-mode instead of matching the buffer name with a regexp.
For example I have dired-mode buffers that popup and I can't come ...
4
votes
1
answer
451
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 ...
1
vote
1
answer
1k
views
Prevent other-window from choosing side window
I have recently started using buffer-display-alist to sensibly place windows within a frame. Typically, I'll have one or two windows of code buffers that I actively work in and a bottom "side ...
5
votes
2
answers
3k
views
async-shell-command: run COMMAND without displaying the output
I want to use async-shell-command to run a .bat file on Windows.
Reading the function documentation it says:
(defun async-shell-command (command &optional output-buffer error-buffer)
"Execute ...
1
vote
1
answer
398
views
How to configure a command to open in same-window unless already open in active frame?
I can use display-buffer-alist to configure a command to open in the same window:
(add-to-list 'display-buffer-alist '("*grep*" display-buffer-same-window))
The problem in this case, however, is if I ...
0
votes
1
answer
422
views
using display-frame-alist to force switch to buffer
Could someone please explain how to use default-frame-alist to make list-buffers switch to the resulting results buffer? list-buffers uses display-buffer so I am thinking that display-buffer-alist is ...
0
votes
0
answers
175
views
How to display certain buffers below the selected window?
For now I can open Help buffer below current one by splitting its window using regex
(add-to-list 'display-buffer-alist
'("^\\*.*\\*$" . (display-buffer-below-selected)))
How can I make ...
5
votes
1
answer
681
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:
--------...
2
votes
3
answers
1k
views
Org-mode 2-pane writing setup using indirect buffers (or display-buffer-alist
I am trying to set up a 2-pane writing setup in org-mode (similar to this). I'm using org-tree-to-indirect-buffer, and want to have the following functionality:
1. Opening a specific heading in a 2nd ...
1
vote
1
answer
640
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
...
2
votes
1
answer
1k
views
Pop up new frame (with only one window and frame) to show specific buffers
I'm trying to add functionality to my spacemacs config. I want to show allAlchemist buffers in another frame. For example Alchemist Test Report or Alchemist Mix. So when I use M-RET t b, spacemacs ...
1
vote
1
answer
2k
views
how to modify buffer display behaviour?
I use display-buffer-alist to Configure buffer display. For example I have this snippet to display flycheck errors buffer.
(add-to-list 'display-buffer-alist
`(,(rx bos "*Flycheck errors*...
1
vote
0
answers
553
views
Setting up an maintaining my window layout
I'd like to have my Emacs frame setup with a neotree window on the left, my active source code or text file taking up the majority of window's space.
I'd like to have Emacs put virtually all other ...
8
votes
0
answers
609
views
How can I force display-buffer to use one specific frame?
My daily workflow uses multiple frames, and I have a frame that I want to dedicate to ERC buffers. I've used set-frame-parameter to give the frame the name *ERC*.
I want display-buffer to always ...
9
votes
4
answers
2k
views
How to control where the org todo keywords buffer displays?
Q: how can I control where the org todo keywords buffer appears?
Entering a todo keyword with C-c C-t (org-todo) opens a new
buffer with the keyword options and then closes it again after I
select ...
5
votes
2
answers
2k
views
How to conditionally reuse the current window to display a buffer?
M-x view-echo-area-messages (bound to C-h e by default) is used to see the *Messages* buffer.
I would like to get the following behavior when I press C-h e:
If the frame has just 1 window, split the ...
0
votes
0
answers
231
views
Conventional implementation of display-buffer-above-selected
Despite respectable variety of display-buffer-* functions some of them stand out with lack of flexibility, such as display-buffer-at-bottom or display-buffer-below-selected that exist in absence of ...
4
votes
1
answer
2k
views
Managing multiple windows and buffers?
Is there a good way to manage multiple windows in a large frame?
I usually have one large frame, split into many windows, and I find that when I (or some command) visits a buffer, the choice of ...
3
votes
1
answer
475
views
Prevent buffer from being displayed
How do you tell display-buffer-alist to not display a buffer whose name has a particular string in it? The "Display Action Functions" documentation mentions display-buffer-no-window. However, I don't ...