lang/python: make evilmi-jump-items simpler in python
This commit is contained in:
parent
49477481c0
commit
816b2a6206
2 changed files with 8 additions and 2 deletions
|
@ -277,7 +277,12 @@
|
||||||
(def-package! evil-matchit
|
(def-package! evil-matchit
|
||||||
:commands (evilmi-jump-items evilmi-text-object global-evil-matchit-mode)
|
:commands (evilmi-jump-items evilmi-text-object global-evil-matchit-mode)
|
||||||
:config (global-evil-matchit-mode 1)
|
: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
|
(def-package! evil-multiedit
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
python-shell-completion-string-code
|
python-shell-completion-string-code
|
||||||
"';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
|
"';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
|
||||||
|
|
||||||
(add-hook 'python-mode-hook #'flycheck-mode)
|
(add-hook! 'python-mode-hook
|
||||||
|
#'(flycheck-mode +evil|simple-matchit))
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(set! :repl 'python-mode #'+python/repl)
|
(set! :repl 'python-mode #'+python/repl)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue