From 960af911b174ee4b38819af91c8efa270927b214 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 3 Sep 2021 12:20:49 -0500 Subject: First foray into display-buffer-alist hacking --- init.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 83bc1be..e492c6d 100644 --- a/init.el +++ b/init.el @@ -759,7 +759,7 @@ like a dumbass." windmove-swap-states-down)) (put sym 'repeat-map 'windmove-repeat-map)))) -(setup windows +(setup window (require 'acdw-bell) (:option use-dialog-box nil use-file-dialog nil @@ -769,6 +769,17 @@ like a dumbass." (acdw-bell/flash-mode-line (acdw/system :home))) recenter-positions '(top middle bottom)) + + ;; from FrostyX: + ;; https://github.com/frostyx/dotfiles/blob/master/.emacs.d/frostyx.org#window-management + (:option display-buffer-alist + '(("shell.*" (display-buffer-same-window) ()) + (".*" (display-buffer-reuse-window + display-buffer-same-window) + (reusable-frames . t))) + ;; `display-buffer-alist' isn't respected by every command, so we + ;; /also/ need to set some of these. + Man-notify-method 'pushy) (tooltip-mode -1)) -- cgit 1.4.1-21-gabe81