blob: 6313ba5459d636dd9f4a75564b4ef066653e9fc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
;; Configure flymake for python
(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)))
;; Set as a minor mode for python
(add-hook 'python-mode-hook '(lambda () (flymake-mode)))
|