mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Update flycheck on idle-change
I get too many "bug reports" about flycheck not doing this. Too much hassle to uphold a misunderstood default.
This commit is contained in:
@ -9,10 +9,10 @@
|
|||||||
:config
|
:config
|
||||||
(setq flycheck-emacs-lisp-load-path 'inherit)
|
(setq flycheck-emacs-lisp-load-path 'inherit)
|
||||||
|
|
||||||
;; Check only when saving or opening files. Newline & idle checks are a mote
|
;; Rerunning checks on every newline is a mote excessive.
|
||||||
;; excessive and can catch code in an incomplete state, producing false
|
(delq 'new-line flycheck-check-syntax-automatically)
|
||||||
;; positives, so we removed them.
|
;; And don't recheck on idle as often
|
||||||
(setq flycheck-check-syntax-automatically '(save mode-enabled idle-buffer-switch))
|
(setq flycheck-idle-change-delay 1.0)
|
||||||
|
|
||||||
;; For the above functionality, check syntax in a buffer that you switched to
|
;; For the above functionality, check syntax in a buffer that you switched to
|
||||||
;; only briefly. This allows "refreshing" the syntax check state for several
|
;; only briefly. This allows "refreshing" the syntax check state for several
|
||||||
|
Reference in New Issue
Block a user