+default/easymotion => +evil/easymotion

This commit is contained in:
Henrik Lissner 2018-06-22 12:02:31 +02:00
parent ab01e0167d
commit 4ad9e18135
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 16 additions and 16 deletions

View file

@ -370,3 +370,18 @@ more information on modifiers."
"Call `doom/escape' if `evil-force-normal-state' is called interactively."
(when (called-interactively-p 'any)
(call-interactively #'doom/escape)))
;;;###autoload
(defun +evil/easymotion ()
"Invoke and lazy-load `evil-easymotion' without compromising which-key
integration."
(interactive)
(let ((prefix (this-command-keys)))
(evil-define-key* 'motion 'global prefix nil)
(evilem-default-keybindings prefix)
(which-key-reload-key-sequence
(vconcat (when evil-this-operator
(where-is-internal evil-this-operator
evil-normal-state-map
t))
prefix))))