diff .elisp/settings/50.localfuncs.el @ 91:075b45c5aecc

cd to the file dir before running pyflakes to make output less verbose.
author Augie Fackler <durin42@gmail.com>
date Tue, 21 Apr 2009 11:07:13 -0500
parents f34d90569fdc
children 0eabfd7a8ffa
line wrap: on
line diff
--- a/.elisp/settings/50.localfuncs.el
+++ b/.elisp/settings/50.localfuncs.el
@@ -1,3 +1,7 @@
 (defun pyflakes-this-buffer ()
   (interactive)
-  (compilation-start (concat "pyflakes " buffer-file-name) nil (lambda (mode) "*pyflakes*")))
+  (compilation-start (concat "cd  "
+                             (file-name-directory buffer-file-name)
+                             "; pyflakes " (file-name-nondirectory buffer-file-name))
+                     nil
+                     (lambda (mode) "*pyflakes*")))