config/default: move evil-easymotion keybinds into +bindings.el

It's easier to see and discover this way.
This commit is contained in:
Henrik Lissner 2018-05-16 23:50:48 +02:00
parent 42bdb848b5
commit 34b6d4d0cf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 23 additions and 19 deletions

View file

@ -38,25 +38,11 @@ buffers."
;;;###autoload
(defun +default/easymotion ()
"TODO"
"Invoke and lazy-load `evil-easymotion' without compromising which-key
integration."
(interactive)
(let ((prefix (this-command-keys)))
(map! :m prefix nil)
(evilem-default-keybindings prefix)
(let ((map evilem-map))
(define-key map "n" (evilem-create #'evil-ex-search-next))
(define-key map "N" (evilem-create #'evil-ex-search-previous))
(define-key map "s"
(evilem-create #'evil-snipe-repeat
:pre-hook (save-excursion (call-interactively #'evil-snipe-s))
:bind ((evil-snipe-scope 'buffer)
(evil-snipe-enable-highlight)
(evil-snipe-enable-incremental-highlight))))
(define-key map "S"
(evilem-create #'evil-snipe-repeat-reverse
:pre-hook (save-excursion (call-interactively #'evil-snipe-s))
:bind ((evil-snipe-scope 'buffer)
(evil-snipe-enable-highlight)
(evil-snipe-enable-incremental-highlight))))
(set-transient-map map)
(which-key-reload-key-sequence prefix))))
(set-transient-map evilem-map)
(which-key-reload-key-sequence prefix)))