Skip to content

Commit

Permalink
Update display-buffer-alist hints to modern Emacs conventions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gcv committed Feb 19, 2021
1 parent d46082c commit 697d95f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,11 @@ compile`? The answer is to fix the broken defaults. This is fairly easy:

```emacs-lisp
(setq display-buffer-alist
'((".*" (display-buffer-reuse-window display-buffer-same-window))))
'((".*"
(display-buffer-reuse-window display-buffer-same-window)
(reusable-frames . t))))
(setq display-buffer-reuse-frames t) ; reuse windows in other frames
(setq even-window-sizes nil) ; display-buffer: avoid resizing
(setq even-window-sizes nil) ; display-buffer hint: avoid resizing
```

The Emacs framework responsible for "pop-up" windows is `display-buffer`. The
Expand All @@ -342,7 +343,7 @@ The suggested settings above do the following:
run will be replaced with `*compilation*`. This may seem intrusive, since it
changes out the current buffer, but keep in mind that most buffers popped up
in this manner are easy to dismiss, either with a dedicated keybinding (often
`q`) or the universally-applicable `M-x kill-buffer`. This is easier than
`q`) or the universally-applicable `kill-buffer`. This is easier than
restoring window arrangements. It is also easier to handle for pre-arranged
window layouts, since the appropriate command can simply be run in a window
prepared for it in advance. (If this is a step too far, then replace
Expand Down

0 comments on commit 697d95f

Please sign in to comment.