changeset 188:e77c01b7b0f4

localfuncs: add tool for running check-code on hg
author Augie Fackler <durin42@gmail.com>
date Wed, 24 Feb 2010 14:34:21 -0600
parents 68304b1d2878
children 0487f0197755 01fbf7dacb39
files .elisp/settings/50.localfuncs.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/50.localfuncs.el
+++ b/.elisp/settings/50.localfuncs.el
@@ -40,6 +40,12 @@ spends an eternity in a regex if you mak
                      nil
                      (lambda (mode) "*pyflakes*")))
 
+(defun hg-check-code ()
+  (interactive)
+  (textmate-start-compile-in-root "python contrib/check-code.py `hg man`"
+                                  nil
+                                  '(lambda (x) "*check-code*") ))
+
 (defun fullscreen ()
   (interactive)
   (set-frame-parameter nil 'fullscreen