feature/syntax-checker: flycheck buffer upon leaving insert mode

This commit is contained in:
Henrik Lissner 2018-04-21 06:17:55 -04:00
parent 8c4176cf8b
commit cb8f12c7da
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -17,9 +17,11 @@
(ignore-errors (flycheck-buffer))
nil))
(add-hook 'doom-escape-hook #'+syntax-checkers|flycheck-buffer t)
(add-hook 'evil-insert-state-exit-hook #'+syntax-checkers|flycheck-buffer)
;; With the option of flychecking the buffer on escape, so we don't need
;; auto-flychecking on idle-change:
;; With the option of flychecking the buffer on escape or leaving insert
;; mode, we don't need auto-flychecking on idle-change (which can feel slow,
;; esp on computers without SSDs).
(delq 'idle-change flycheck-check-syntax-automatically)))