From 071aa788c8a0c700ddc4c8143612e4142e62a9b7 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 22 Apr 2024 20:00:53 -0400 Subject: [PATCH] Open help-like buffers in side window --- emacs/.emacs.d/config/init-windows.el | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/emacs/.emacs.d/config/init-windows.el b/emacs/.emacs.d/config/init-windows.el index 693de12..f23ebc4 100644 --- a/emacs/.emacs.d/config/init-windows.el +++ b/emacs/.emacs.d/config/init-windows.el @@ -43,10 +43,25 @@ (setopt switch-to-buffer-in-dedicated-window 'pop switch-to-buffer-obey-display-actions t split-height-threshold nil - display-buffer-alist '(("\\*Help\\*" (display-buffer-reuse-window - display-buffer-pop-up-window)) - ("\\*helpful .*\\*" (display-buffer-reuse-mode-window - display-buffer-pop-up-window)) + window-sides-slots '(1 0 0 1) + display-buffer-alist '(("\\*Help\\*" + (display-buffer-reuse-window + display-buffer-in-side-window) + (side . right) + (slot . 0) + (window-width . 85)) + ("\\*helpful .*\\*" + (display-buffer-reuse-mode-window + display-buffer-in-side-window) + (side . right) + (slot . 0) + (window-width . 85)) + ("\\*eldoc\\*" + (display-buffer-reuse-window + display-buffer-in-side-window) + (side . right) + (slot . 0) + (window-width . 85)) ("\\*vterm.*\\*" (display-buffer-reuse-mode-window display-buffer-pop-up-window)