comparison .elisp/settings/40.modes.el @ 102:16472f9a3543

Add some nosetests keybindings.
author Augie Fackler <durin42@gmail.com>
date Tue, 02 Jun 2009 14:00:56 -0500
parents 0c1db2df2bf8
children 16b57e1fc23d
comparison
equal deleted inserted replaced
101:0c1db2df2bf8 102:16472f9a3543
44 (easy-menu-add-item nil '("Python") ["Run One Test" nosetests-one t] 44 (easy-menu-add-item nil '("Python") ["Run One Test" nosetests-one t]
45 "Comment Out Region") 45 "Comment Out Region")
46 (easy-menu-add-item nil '("Python") ["Debug One Test" nosetests-pdb-one t] 46 (easy-menu-add-item nil '("Python") ["Debug One Test" nosetests-pdb-one t]
47 "Comment Out Region") 47 "Comment Out Region")
48 (easy-menu-add-item nil '("Python") ["-" nil t] "Comment Out Region") 48 (easy-menu-add-item nil '("Python") ["-" nil t] "Comment Out Region")
49 (local-set-key "\M-n" 'nosetests-module)
50 (local-set-key "\M-\C-n" 'nosetests-one)
49 ) 51 )
50 (add-hook 'python-mode-hook 'af-python-mode-hook) 52 (add-hook 'python-mode-hook 'af-python-mode-hook)
51 53
52 (add-hook 'compilation-mode-hook '(lambda () (local-set-key "g" 'recompile))) 54 (add-hook 'compilation-mode-hook '(lambda () (local-set-key "g" 'recompile)))