Flycheck buffer on idle-buffer-switch
This commit is contained in:
parent
9e339b36f1
commit
d21099cbd0
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue