added automatic switch evil-normal-state when entering evil-motion-state
This commit is contained in:
parent
62fe802aa4
commit
a632addab8
|
@ -24,3 +24,10 @@
|
|||
(add-hook 'evil-emacs-state-entry-hook
|
||||
(lambda ()
|
||||
(add-hook 'post-command-hook 'evil-emacs-state-2-evil-normal-state)))
|
||||
;; same thing for motion state
|
||||
(defun evil-motion-state-2-evil-normal-state ()
|
||||
(evil-normal-state)
|
||||
(remove-hook 'post-command-hook 'evil-motion-state-2-evil-normal-state))
|
||||
(add-hook 'evil-motion-state-entry-hook
|
||||
(lambda ()
|
||||
(add-hook 'post-command-hook 'evil-motion-state-2-evil-normal-state)))
|
||||
|
|
Loading…
Reference in a new issue