diff options
Diffstat (limited to 'elisp/pylint-flymake.el')
-rw-r--r-- | elisp/pylint-flymake.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/elisp/pylint-flymake.el b/elisp/pylint-flymake.el index 835409ea3..df4686711 100644 --- a/elisp/pylint-flymake.el +++ b/elisp/pylint-flymake.el @@ -1,11 +1,16 @@ + +;; Configure flymake for python +(setq pylint "epylint") (when (load "flymake" t) (defun flymake-pylint-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy - 'flymake-create-temp-inplace)) + 'flymake-create-temp-inplace)) (local-file (file-relative-name temp-file (file-name-directory buffer-file-name)))) - (list "epylint" (list local-file)))) - + (list (expand-file-name pylint "") (list local-file)))) (add-to-list 'flymake-allowed-file-name-masks '("\\.py\\'" flymake-pylint-init))) + +;; Set as a minor mode for python +(add-hook 'python-mode-hook '(lambda () (flymake-mode))) |