Your IP : 216.73.216.213


Current Path : /opt/alt/python37/share/doc/alt-python37-pylint/elisp/
Upload File :
Current File : //opt/alt/python37/share/doc/alt-python37-pylint/elisp/pylint-flymake.el

;; 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)))