From 0a6d48010b25cdf5654035786a8db599cbff643f Mon Sep 17 00:00:00 2001 From: John Turner Date: Tue, 12 Sep 2023 00:38:46 -0400 Subject: [PATCH] use best-side-window for flymake diagnostics buffers --- packages/flymake.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/flymake.el b/packages/flymake.el index 2639770..cfe2ff7 100644 --- a/packages/flymake.el +++ b/packages/flymake.el @@ -1,3 +1,7 @@ (use-package flymake :hook - (flymake-diagnostics-buffer-mode . visual-line-mode)) + (flymake-diagnostics-buffer-mode . visual-line-mode) + :config + (when (require 'best-side-window nil t) + (add-to-list 'display-buffer-alist '((major-mode . flymake-diagonstics-buffer-mode) + best-side-window-display-buffer-in-best-side-window))))