From dc0fc9d4f46dca2ad5af8870ade9ee3d7da69d67 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 3 Mar 2026 18:22:13 -0500 Subject: [PATCH] tweak(syntax): configure flymake even without +flymake Some major modes may only have a flymake checker (like beancount-mode), and since flymake is built into Emacs, it's possible the user may encounter `flymake-mode` even when they haven't enabled +flymake for this module, so at least load its flymake config. --- modules/checkers/syntax/config.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/checkers/syntax/config.el b/modules/checkers/syntax/config.el index 86f8d0d24..2e2842766 100644 --- a/modules/checkers/syntax/config.el +++ b/modules/checkers/syntax/config.el @@ -122,8 +122,12 @@ ;;; Flymake (use-package! flymake - :when (modulep! +flymake) - :hook ((prog-mode text-mode) . flymake-mode) + :defer t + :init + (when (modulep! +flymake) + (add-hook 'prog-mode-hook #'flymake-mode) + (add-hook 'text-mode-hook #'flymake-mode)) + :config (setq flymake-fringe-indicator-position 'right-fringe flymake-wrap-around nil)