comparison .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
comparison
equal deleted inserted replaced
90:9f4b375f5d8e 91:075b45c5aecc
1 (defun pyflakes-this-buffer () 1 (defun pyflakes-this-buffer ()
2 (interactive) 2 (interactive)
3 (compilation-start (concat "pyflakes " buffer-file-name) nil (lambda (mode) "*pyflakes*"))) 3 (compilation-start (concat "cd "
4 (file-name-directory buffer-file-name)
5 "; pyflakes " (file-name-nondirectory buffer-file-name))
6 nil
7 (lambda (mode) "*pyflakes*")))