# HG changeset patch # User Augie Fackler # Date 1240887124 18000 # Node ID 9052c3801744103571be5be95f94ccf6b7735ac3 # Parent 7f67cf3325374f501a994617fc516b616e5976ac First stab at some menu items for the nose stuff. diff --git a/.elisp/settings/40.modes.el b/.elisp/settings/40.modes.el --- 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)