Add back and fix evil-matchit for python-mode
This commit is contained in:
parent
98e43b17ad
commit
24c642ff3d
|
@ -31,7 +31,7 @@ This layer adds support for the Python language.
|
|||
- semantic mode is enabled
|
||||
- PEP8 compliant formatting via [[https://github.com/google/yapf][YAPF]]
|
||||
- Suppression of unused import with [[https://github.com/myint/autoflake][autoflake]]
|
||||
|
||||
- Use the ~%~ key to jump between blocks with [[https://github.com/redguardtoo/evil-matchit][evil-matchit]]
|
||||
* Install
|
||||
|
||||
** Layer
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
company-anaconda
|
||||
cython-mode
|
||||
eldoc
|
||||
;; evil-matchit
|
||||
evil-jumper
|
||||
evil-matchit
|
||||
flycheck
|
||||
helm-cscope
|
||||
helm-pydoc
|
||||
|
@ -273,15 +273,8 @@
|
|||
(setq imenu-create-index-function
|
||||
#'spacemacs/python-imenu-create-index-python-or-semantic)))))
|
||||
|
||||
;; Has bugs at the moment
|
||||
;; (defun python/post-init-evil-matchit ()
|
||||
;; (use-package evil-matchit-python
|
||||
;; :defer t
|
||||
;; :init
|
||||
;; (add-hook `python-mode-hook `turn-on-evil-matchit-mode)
|
||||
;; :config
|
||||
;; (plist-put evilmi-plugins 'python-mode '((evilmi-simple-get-tag evilmi-simple-jump)
|
||||
;; (evilmi-python-get-tag evilmi-python-jump)))))
|
||||
(defun python/post-init-evil-matchit ()
|
||||
(add-hook `python-mode-hook `turn-on-evil-matchit-mode))
|
||||
|
||||
(defun python/post-init-flycheck ()
|
||||
(add-hook 'python-mode-hook 'flycheck-mode))
|
||||
|
|
Loading…
Reference in New Issue