General cleanup; comment revisions

This commit is contained in:
Henrik Lissner 2016-09-26 16:26:11 +02:00
parent f77ab3cb14
commit 54196139bb
4 changed files with 29 additions and 22 deletions

View file

@ -34,10 +34,10 @@
[backspace] 'doom/yas-backspace
"<delete>" 'doom/yas-delete)
;; Fix an error caused by smartparens interfering with yasnippet bindings
(advice-add 'yas-expand :before 'sp-remove-active-pair-overlay)
;; Exit snippets on ESC in normal mode
(advice-add 'evil-force-normal-state :before 'yas-exit-all-snippets)
;; Fix an issue with smartparens interfering with yasnippet keybindings
(advice-add 'yas-expand :before 'sp-remove-active-pair-overlay)
;; Once you're in normal mode, you're out
(add-hook 'evil-normal-state-entry-hook 'yas-abort-snippet)
;; Strip out whitespace before a line selection