mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Flycheck buffer on idle-buffer-switch
This commit is contained in:
@ -12,7 +12,12 @@
|
|||||||
;; Check only when saving or opening files. Newline & idle checks are a mote
|
;; Check only when saving or opening files. Newline & idle checks are a mote
|
||||||
;; excessive and can catch code in an incomplete state, producing false
|
;; excessive and can catch code in an incomplete state, producing false
|
||||||
;; positives, so we removed them.
|
;; positives, so we removed them.
|
||||||
(setq flycheck-check-syntax-automatically '(save mode-enabled))
|
(setq flycheck-check-syntax-automatically '(save mode-enabled idle-buffer-switch))
|
||||||
|
|
||||||
|
;; For the above functionality, check syntax in a buffer that you switched to
|
||||||
|
;; only briefly. This allows "refreshing" the syntax check state for several
|
||||||
|
;; buffers quickly after e.g. changing a config file.
|
||||||
|
(setq flycheck-buffer-switch-check-intermediate-buffers t)
|
||||||
|
|
||||||
;; Display errors a little quicker (default is 0.9s)
|
;; Display errors a little quicker (default is 0.9s)
|
||||||
(setq flycheck-display-errors-delay 0.25)
|
(setq flycheck-display-errors-delay 0.25)
|
||||||
|
Reference in New Issue
Block a user