feature/syntax-checker: flycheck buffer upon leaving insert mode
This commit is contained in:
parent
8c4176cf8b
commit
cb8f12c7da
1 changed files with 4 additions and 2 deletions
|
@ -17,9 +17,11 @@
|
||||||
(ignore-errors (flycheck-buffer))
|
(ignore-errors (flycheck-buffer))
|
||||||
nil))
|
nil))
|
||||||
(add-hook 'doom-escape-hook #'+syntax-checkers|flycheck-buffer t)
|
(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
|
;; With the option of flychecking the buffer on escape or leaving insert
|
||||||
;; auto-flychecking on idle-change:
|
;; 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)))
|
(delq 'idle-change flycheck-check-syntax-automatically)))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue