mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user