diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-08-11 20:06:08 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-08-11 20:06:08 +0200 |
commit | 9633f27b1339b078f046d86374703e4ff7b0cdc8 (patch) | |
tree | b4755a2aae72480b2c4e468146340f21700ccc05 /lisp/init-python.el | |
parent | 5ceb900e39044f936fa7d71feda07b91686d315f (diff) |
python: Test for flake8 executable
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") |