Created
October 18, 2021 15:07
-
-
Save erwan-lemonnier/cbba8250f4e5e4e352c09391afec7eeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(load "~/.emacs.d/flymake.el") | |
(load "~/.emacs.d/flymake-cursor.el") | |
; manual python checking: | |
; pycheckers is a script in the path, under ~/bin/, that run | |
; pyflakes, pep8 and possibly more checks | |
(setq python-check-command "/Users/erwan/bin/pycheckers") | |
; use flymake with pycheckers | |
(add-hook 'find-file-hook 'flymake-find-file-hook) | |
(when (load "flymake" t) | |
(defun flymake-pyflakes-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 "/Users/erwan/bin/pycheckers" (list local-file)))) | |
(add-to-list 'flymake-allowed-file-name-masks | |
'("\\.py\\'" flymake-pyflakes-init)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment