Keybindings are added to python-mode-map

This commit is contained in:
Edmund Miller 2018-11-23 11:06:03 -06:00
parent ba49765358
commit 2c0b0fac77
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -111,17 +111,11 @@
:n "V" #'nosetests-pdb-module))
(def-package! python-pytest
:commands pytest-mode
:preface (defvar pytest-mode-map (make-sparse-keymap))
: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
:config
(map! :map python-mode-map
:localleader
:prefix "t"
:n "r" #'nosetests-again))
:nv "p" #'python-pytest-popup))
;;
;; Environment management