view .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 source

(defun pyflakes-this-buffer ()
  (interactive)
  (compilation-start (concat "cd  "
                             (file-name-directory buffer-file-name)
                             "; pyflakes " (file-name-nondirectory buffer-file-name))
                     nil
                     (lambda (mode) "*pyflakes*")))