diff options
Diffstat (limited to 'lisp/init-python.el')
-rw-r--r-- | lisp/init-python.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/init-python.el b/lisp/init-python.el index 64ea3bc..e5223b2 100644 --- a/lisp/init-python.el +++ b/lisp/init-python.el @@ -9,8 +9,9 @@ :commands python-mode :hook (python-mode . python-mode-buffer-local-variables) :config - ;; use flake8 as flymake backend - (setq python-flymake-command '("flake8" "-")) + ;; prefer flake8 as flymake backend + (when (executable-find "flake8") + (setq python-flymake-command '("flake8" "-"))) ;; prefer python3 interpreter (when (executable-find "python3") |