Generalize +evil-esc-hook into doom-escape-hook

This lets vanilla Emacs users in on having a universal "escape" key.
This commit is contained in:
Henrik Lissner 2018-01-06 02:38:34 -05:00
parent c8768f512d
commit 3cbddbfd88
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
8 changed files with 34 additions and 28 deletions

View file

@ -12,7 +12,7 @@
(when flycheck-mode
(ignore-errors (flycheck-buffer))
nil))
(add-hook '+evil-esc-hook #'+syntax-checkers|flycheck-buffer t)
(add-hook 'doom-escape-hook #'+syntax-checkers|flycheck-buffer t)
;; With the option of flychecking the buffer on escape, so we don't need
;; auto-flychecking on idle-change: