From bda27228eba446f59844aa2fdeca4081cdb6aee1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 17 May 2025 17:50:37 +0200 Subject: [PATCH] fix(beancount): linter in narrowed buffers flymake-bean only sends the visible buffer to bean-check, causing a cascade of unhelpful linter warnings and errors. --- modules/lang/beancount/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lang/beancount/config.el b/modules/lang/beancount/config.el index a288a03e9..3ea48bd8f 100644 --- a/modules/lang/beancount/config.el +++ b/modules/lang/beancount/config.el @@ -26,6 +26,10 @@ :around #'beancount--fava-filter (funcall fn process (ansi-color-filter-apply output))) + (defadvice! +beancount--widen-before-flymake-bean-check--run-a (fn &rest args) + :around #'flymake-bean-check--run + (save-restriction (widen) (apply fn args))) + (map! :map beancount-mode-map :m "[[" #'+beancount/previous-transaction :m "]]" #'+beancount/next-transaction