Keybindings are added to python-mode-map
This commit is contained in:
parent
ba49765358
commit
2c0b0fac77
1 changed files with 3 additions and 9 deletions
|
@ -111,17 +111,11 @@
|
||||||
:n "V" #'nosetests-pdb-module))
|
:n "V" #'nosetests-pdb-module))
|
||||||
|
|
||||||
(def-package! python-pytest
|
(def-package! python-pytest
|
||||||
:commands pytest-mode
|
:config
|
||||||
:preface (defvar pytest-mode-map (make-sparse-keymap))
|
(map! :map python-mode-map
|
||||||
:init (associate! pytest-mode :match "/test_.+\\.py$" :modes (python-mode))
|
|
||||||
(set-yas-minor-mode! 'pytest-mode)
|
|
||||||
(when (featurep 'evil)
|
|
||||||
(add-hook 'pytest-mode-hook #'evil-normalize-keymaps))
|
|
||||||
|
|
||||||
(map! :map nose-mode-map
|
|
||||||
:localleader
|
:localleader
|
||||||
:prefix "t"
|
:prefix "t"
|
||||||
:n "r" #'nosetests-again))
|
:nv "p" #'python-pytest-popup))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Environment management
|
;; Environment management
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue