python: improve nosetests integration

This commit is contained in:
Henrik Lissner 2016-04-13 16:15:15 -04:00
parent 9565bae1f9
commit 6c429680e9
2 changed files with 3 additions and 1 deletions

View file

@ -22,6 +22,7 @@
(" *NeoTree*" :align left :select t)
("*evil-registers*" :align below :size 0.3)
("*quickrun*" :align below :size 10)
("*nosetests*" :align below :size 15 :noselect t)
("*eval*" :align below :size 12)
("*esup*" :align below :size 30 :noselect t)
("*ert*" :align below :size 20 :noselect t)

View file

@ -59,8 +59,9 @@
(use-package nose
:commands nose-mode
:preface (defvar nose-mode-map (make-sparse-keymap))
:init (associate! nose-mode :match "/test_.+\\.py\\'")
:init (associate! nose-mode :match "/test_.+\\.py$" :in (python-mode))
:config
(add-yas-minor-mode! 'nose-mode)
(map! :map nose-mode-map
(:localleader
:n "tr" 'nosetests-again