feature/evil: refactor evil-force-normal-state advice into +evil-esc-hook
This commit is contained in:
parent
69f6eab913
commit
cce294fcf6
7 changed files with 29 additions and 16 deletions
|
@ -29,7 +29,7 @@
|
|||
;; Flycheck buffer on ESC in normal mode.
|
||||
(defun +syntax-checkers|flycheck-buffer ()
|
||||
(if flycheck-mode (flycheck-buffer)))
|
||||
(advice-add #'evil-force-normal-state :after #'+syntax-checkers|flycheck-buffer)))
|
||||
(add-hook '+evil-esc-hook #'+syntax-checkers|flycheck-buffer)))
|
||||
|
||||
|
||||
(def-package! flycheck-pos-tip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue