Fix esc not exiting snippets

Caused by a custom ESC keybind overriding +evil-esc-hook
This commit is contained in:
Henrik Lissner 2018-01-01 22:42:41 -05:00
parent fd62e8e0b1
commit 50c1ad0875
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 1 additions and 2 deletions

View file

@ -37,7 +37,7 @@
(advice-add #'yas-expand :before #'sp-remove-active-pair-overlay) (advice-add #'yas-expand :before #'sp-remove-active-pair-overlay)
;; Exit snippets on ESC from normal mode ;; Exit snippets on ESC from normal mode
(add-hook '+evil-esc-hook #'yas-exit-all-snippets)) (add-hook '+evil-esc-hook #'yas-abort-snippet))
(def-package! auto-yasnippet (def-package! auto-yasnippet

View file

@ -603,7 +603,6 @@
"<M-right>" #'+snippets/goto-end-of-field "<M-right>" #'+snippets/goto-end-of-field
"<M-left>" #'+snippets/goto-start-of-field "<M-left>" #'+snippets/goto-start-of-field
"<M-backspace>" #'+snippets/delete-to-start-of-field "<M-backspace>" #'+snippets/delete-to-start-of-field
[escape] #'evil-normal-state
[backspace] #'+snippets/delete-backward-char [backspace] #'+snippets/delete-backward-char
[delete] #'+snippets/delete-forward-char-or-field) [delete] #'+snippets/delete-forward-char-or-field)
(:map yas-minor-mode-map (:map yas-minor-mode-map