From 72c0d999b63827eca4b0ac03bc99101b5b9b81de Mon Sep 17 00:00:00 2001 From: John Turner Date: Sat, 4 Nov 2023 18:17:06 -0400 Subject: [PATCH] setup flycheck to use best-side-window for displaying errors --- packages/flycheck.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/flycheck.el b/packages/flycheck.el index eb45a3f..f2410ac 100644 --- a/packages/flycheck.el +++ b/packages/flycheck.el @@ -1,3 +1,7 @@ (use-package flycheck :hook - (flycheck-error-list-mode . visual-line-mode)) + (flycheck-error-list-mode . visual-line-mode) + :config + (when (require 'best-side-window nil t) + (add-to-list 'display-buffer-alist '((major-mode . flycheck-error-list-mode) + best-side-window-display-buffer-in-best-side-window))))