diff options
author | Martin Polden <mpolden@mpolden.no> | 2018-05-29 13:45:03 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2018-05-29 13:45:03 +0200 |
commit | 25433cf144a480411f36d01e47a8054d13872de0 (patch) | |
tree | 0ca5d3bf924473118e684f5bf3ad8942f9bcdcfe /lisp/init-flycheck.el | |
parent | 6dcfbb7863835626e5107782cea7711d66cf81ff (diff) |
Prefer Python 3 in Flycheck
Diffstat (limited to 'lisp/init-flycheck.el')
-rw-r--r-- | lisp/init-flycheck.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/init-flycheck.el b/lisp/init-flycheck.el index 2e401dd..f9ef2ab 100644 --- a/lisp/init-flycheck.el +++ b/lisp/init-flycheck.el @@ -4,6 +4,13 @@ (setq-default flycheck-disabled-checkers '(emacs-lisp emacs-lisp-checkdoc go-golint)) + ;; prefer python 3 + (let ((python "python3")) + (when (executable-find python) + (setq flycheck-python-flake8-executable python + flycheck-python-pycompile-executable python + flycheck-python-pylint-executable python))) + :config (global-flycheck-mode 1)) |