changeset 94:9052c3801744

First stab at some menu items for the nose stuff.
author Augie Fackler <durin42@gmail.com>
date Mon, 27 Apr 2009 21:52:04 -0500
parents 7f67cf332537
children df45e402581c
files .elisp/settings/40.modes.el
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el
+++ b/.elisp/settings/40.modes.el
@@ -29,7 +29,6 @@ point."
                             (af-tab-fix)
                             (local-set-key "\C-m" 'newline-and-indent)))
 
-
 (defun af-python-mode-hook ()
   ; highlight tabs in Python
   (make-variable-buffer-local 'font-lock-mode-hook)
@@ -38,6 +37,15 @@ point."
   (if (and buffer-file-name (string-match "melange" buffer-file-name))
      (set-variable 'python-indent 2))
   (af-tab-fix)
+  (easy-menu-add-item nil '("Python") ["Run All Tests" nosetests-all t]
+                      "Comment Out Region")
+  (easy-menu-add-item nil '("Python") ["Run Module Tests" nosetests-module t]
+                      "Comment Out Region")
+  (easy-menu-add-item nil '("Python") ["Run One Test" nosetests-one t]
+                      "Comment Out Region")
+  (easy-menu-add-item nil '("Python") ["Debug One Test" nosetests-pdb-one t]
+                      "Comment Out Region")
+  (easy-menu-add-item nil '("Python") ["-" nil t] "Comment Out Region")
 )
 (add-hook 'python-mode-hook 'af-python-mode-hook)