diff .elisp/settings/50.localfuncs.el @ 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 cd4e645d1207
children c965d5dbd868
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