From 20c873d45bea88471fec5a506d6d163bdac6c479 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 12 Dec 2020 15:14:00 -0500 Subject: [PATCH] Update flycheck on idle-change I get too many "bug reports" about flycheck not doing this. Too much hassle to uphold a misunderstood default. --- modules/checkers/syntax/config.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/checkers/syntax/config.el b/modules/checkers/syntax/config.el index 13b05e6ff..e535ab226 100644 --- a/modules/checkers/syntax/config.el +++ b/modules/checkers/syntax/config.el @@ -9,10 +9,10 @@ :config (setq flycheck-emacs-lisp-load-path 'inherit) - ;; Check only when saving or opening files. Newline & idle checks are a mote - ;; excessive and can catch code in an incomplete state, producing false - ;; positives, so we removed them. - (setq flycheck-check-syntax-automatically '(save mode-enabled idle-buffer-switch)) + ;; Rerunning checks on every newline is a mote excessive. + (delq 'new-line flycheck-check-syntax-automatically) + ;; And don't recheck on idle as often + (setq flycheck-idle-change-delay 1.0) ;; For the above functionality, check syntax in a buffer that you switched to ;; only briefly. This allows "refreshing" the syntax check state for several