lang/python: make evilmi-jump-items simpler in python

This commit is contained in:
Henrik Lissner 2017-04-21 15:55:34 -04:00
parent 49477481c0
commit 816b2a6206
2 changed files with 8 additions and 2 deletions

View file

@ -277,7 +277,12 @@
(def-package! evil-matchit
:commands (evilmi-jump-items evilmi-text-object global-evil-matchit-mode)
:config (global-evil-matchit-mode 1)
:init (+evil--textobj "%" #'evilmi-text-object))
:init
(+evil--textobj "%" #'evilmi-text-object)
(defun +evil|simple-matchit ()
"Force evil-matchit to favor simple bracket jumping. Helpful where the new
algorithm is just confusing, like in python or ruby."
(setq-local evilmi-always-simple-jump t)))
(def-package! evil-multiedit