From ac1c59f540333054cab8e9765a3d096936f107d6 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 14 Apr 2008 17:56:00 +0200 Subject: added pylint/flymake related files --- elisp/pylint-flymake.el | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 elisp/pylint-flymake.el (limited to 'elisp') diff --git a/elisp/pylint-flymake.el b/elisp/pylint-flymake.el new file mode 100644 index 000000000..835409ea3 --- /dev/null +++ b/elisp/pylint-flymake.el @@ -0,0 +1,11 @@ +(when (load "flymake" t) + (defun flymake-pylint-init () + (let* ((temp-file (flymake-init-create-temp-buffer-copy + 'flymake-create-temp-inplace)) + (local-file (file-relative-name + temp-file + (file-name-directory buffer-file-name)))) + (list "epylint" (list local-file)))) + + (add-to-list 'flymake-allowed-file-name-masks + '("\\.py\\'" flymake-pylint-init))) -- cgit v1.2.1