From 25433cf144a480411f36d01e47a8054d13872de0 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Tue, 29 May 2018 13:45:03 +0200 Subject: Prefer Python 3 in Flycheck --- lisp/init-flycheck.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lisp/init-flycheck.el') 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)) -- cgit v1.2.3