From 78ada61d89d528f4fc3e31d17beb98778b0ec1fa Mon Sep 17 00:00:00 2001 From: gered Date: Sat, 7 Dec 2024 13:12:49 -0500 Subject: [PATCH] configure help buffers to always open in the same window --- emacs.d/ui.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs.d/ui.el b/emacs.d/ui.el index 6d13f8a..c68f332 100644 --- a/emacs.d/ui.el +++ b/emacs.d/ui.el @@ -11,6 +11,14 @@ (setopt x-underline-at-descent-line nil) (setopt switch-to-buffer-obey-display-actions 1) +; help buffers always open in the same window. mainly this helps make it so +; opening links in help buffers doesn't cause them to open in new windows +; each time. ugh! +; TODO: admittedly this makes initially opening help slightly more annoying as +; the first help buffer will *also* open in the same window. +(add-to-list 'display-buffer-alist + '("*Help*" display-buffer-same-window)) + (setopt show-trailing-whitespace nil) (setopt indicate-buffer-boundaries 'left)