mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Keybindings are added to python-mode-map
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user