core-editor: reset expand-region on doom/escape #317

This commit is contained in:
Henrik Lissner 2018-02-01 19:57:46 -05:00
parent b0a2e97baa
commit 03a03853e4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -213,7 +213,8 @@ extension, try to guess one."
(defun doom*quit-expand-region ()
(when (memq last-command '(er/expand-region er/contract-region))
(er/contract-region 0)))
(advice-add #'evil-escape :before #'doom*quit-expand-region))
(advice-add #'evil-escape :before #'doom*quit-expand-region)
(advice-add #'doom/escape :before #'doom*quit-expand-region))
(def-package! helpful
:commands (helpful-callable helpful-function helpful-macro helpful-command