evil-jumper: Move bindings to global motion map

Having them in a minor mode map gives them precedence over other minor
modes. It's better to put the bindings in the same place as the original
evil jump commands which is the global motion map.
This commit is contained in:
justbur 2016-01-04 20:40:27 -05:00 committed by syl20bnr
parent 63fbdb4e01
commit 8a5882ec6b

View file

@ -582,7 +582,17 @@
:init
(progn
(setq evil-jumper-auto-save-interval 600)
(evil-jumper-mode t))))
;; Move keybindings into global motion state map
(add-hook 'evil-jumper-mode-hook
(lambda ()
(if evil-jumper-mode
(progn
(define-key evil-motion-state-map (kbd "TAB") 'evil-jumper/forward)
(define-key evil-motion-state-map (kbd "C-o") 'evil-jumper/backward))
(define-key evil-motion-state-map (kbd "TAB") 'evil-jump-forward)
(define-key evil-motion-state-map (kbd "C-o") 'evil-jump-backward))))
(evil-jumper-mode t)
(setcdr evil-jumper-mode-map nil))))
(defun spacemacs/init-evil-lisp-state ()
(use-package evil-lisp-state