From 9f002127811b1dacaf21bce4b4297a1817c52f9d Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Tue, 7 May 2024 15:28:42 +0200 Subject: [PATCH] Tweak setting `display-buffer-alist' and add `info' pointers --- README.org | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 6856423..8faf206 100644 --- a/README.org +++ b/README.org @@ -648,17 +648,25 @@ for technical information. #+caption: Window management variables. #+name: lst:3rd-window-management #+begin_src emacs-lisp -n :results none +;; (info "(emacs) Bug Reference") (defvar bug-reference-url-format "https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s" "Setting this as a file local variable enables `bug-reference-mode'") +;; (info "(elisp) Displaying Buffers") +;; (info "(emacs) Window Choice") +;; (describe-function 'display-buffer) (with-eval-after-load 'emacs ;; https://www.masteringemacs.org/article/demystifying-emacs-window-manager (setopt switch-to-buffer-obey-display-actions t) (add-to-list 'display-buffer-alist - `(,(rx (or "*Apropos*" "*Dictionary*" "*Help*" "*info")) + `(,(rx (or "*Apropos*" "*Dictionary*")) (display-buffer-reuse-window display-buffer-pop-up-window) (inhibit-same-window . nil))) + (add-to-list 'display-buffer-alist + `(,(rx (or "*Help*" "*info*")) + display-buffer-pop-up-window + (inhibit-same-window . t))) (add-to-list 'display-buffer-alist `(,(rx (or "*Occur*" "*grep*" "*xref*")) display-buffer-reuse-window