diff options
-rw-r--r-- | lisp/init-python.el | 6 |
1 files changed, 5 insertions, 1 deletions
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) |