Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save erwan-lemonnier/cbba8250f4e5e4e352c09391afec7eeb to your computer and use it in GitHub Desktop.
Save erwan-lemonnier/cbba8250f4e5e4e352c09391afec7eeb to your computer and use it in GitHub Desktop.
(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