diff options
| author | Constantine Vetoshev <gepardcv@gmail.com> | 2021-02-18 21:31:46 -0800 |
|---|---|---|
| committer | Constantine Vetoshev <gepardcv@gmail.com> | 2021-02-18 21:31:46 -0800 |
| commit | 697d95f24e055eb9725781d179d7db63d6afd2b5 (patch) | |
| tree | 2865154db27ca214fce61b9da3d79881f1caa37a | |
| parent | d46082ca2adb8df3f6a7a422cff4af095878c2b6 (diff) | |
Update display-buffer-alist hints to modern Emacs conventions.
| -rw-r--r-- | README.md | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 @@ -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 |
