diff --git a/lisp/init-python.el b/lisp/init-python.el index 1bc45337b9..c52cd6352d 100644 --- a/lisp/init-python.el +++ b/lisp/init-python.el @@ -18,7 +18,7 @@ (when (maybe-require-package 'flymake-ruff) (defun sanityinc/flymake-ruff-maybe-enable () - (when (executable-find flymake-ruff-program) + (when (executable-find "ruff") (flymake-ruff-load))) (add-hook 'python-mode-hook 'sanityinc/flymake-ruff-maybe-enable))