From 1ca558933428daa63a166345f77846536293b570 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sat, 6 Jun 2020 15:54:23 +0200 Subject: python: Prefer python3 interpreter --- lisp/init-python.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp/init-python.el') diff --git a/lisp/init-python.el b/lisp/init-python.el index ec6c741..0ff1f21 100644 --- a/lisp/init-python.el +++ b/lisp/init-python.el @@ -11,6 +11,10 @@ :hook (python-mode . python-mode-buffer-local-variables) :config ;; use flake8 as flymake backend - (setq python-flymake-command '("flake8" "-"))) + (setq python-flymake-command '("flake8" "-")) + + ;; prefer python3 interpreter + (when (executable-find "python3") + (setq python-shell-interpreter "python3"))) (provide 'init-python) -- cgit v1.2.3