config/default: fix easymotion keybind

This fixes a regression caused by the recent precedence update
(abe42fcb) for `map!`, which broke `+default/easymotion`.
This commit is contained in:
Henrik Lissner 2018-03-22 19:53:28 -04:00
parent 9f2a94c25a
commit 28303e24a2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -41,19 +41,22 @@ buffers."
"TODO" "TODO"
(interactive) (interactive)
(let ((prefix (this-command-keys))) (let ((prefix (this-command-keys)))
(map! :m prefix nil)
(evilem-default-keybindings prefix) (evilem-default-keybindings prefix)
(map! :map evilem-map (let ((map evilem-map))
"n" (evilem-create #'evil-ex-search-next) (define-key map "n" (evilem-create #'evil-ex-search-next))
"N" (evilem-create #'evil-ex-search-previous) (define-key map "N" (evilem-create #'evil-ex-search-previous))
"s" (evilem-create #'evil-snipe-repeat (define-key map "s"
:pre-hook (save-excursion (call-interactively #'evil-snipe-s)) (evilem-create #'evil-snipe-repeat
:bind ((evil-snipe-scope 'buffer) :pre-hook (save-excursion (call-interactively #'evil-snipe-s))
(evil-snipe-enable-highlight) :bind ((evil-snipe-scope 'buffer)
(evil-snipe-enable-incremental-highlight))) (evil-snipe-enable-highlight)
"S" (evilem-create #'evil-snipe-repeat-reverse (evil-snipe-enable-incremental-highlight))))
:pre-hook (save-excursion (call-interactively #'evil-snipe-s)) (define-key map "S"
:bind ((evil-snipe-scope 'buffer) (evilem-create #'evil-snipe-repeat-reverse
(evil-snipe-enable-highlight) :pre-hook (save-excursion (call-interactively #'evil-snipe-s))
(evil-snipe-enable-incremental-highlight)))) :bind ((evil-snipe-scope 'buffer)
(set-transient-map evilem-map) (evil-snipe-enable-highlight)
(which-key-reload-key-sequence prefix))) (evil-snipe-enable-incremental-highlight))))
(set-transient-map map)
(which-key-reload-key-sequence prefix))))