Flycheck buffer on idle-buffer-switch

This commit is contained in:
Henrik Lissner 2020-04-17 14:56:02 -04:00
parent 9e339b36f1
commit d21099cbd0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)