From 9b5fe4174059fd6cc9e95b82a1b2f55605593150 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 22 May 2024 09:40:23 +0100 Subject: [PATCH] Ensure python processes use python3 This affects python-mode and ob-python --- init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.el b/init.el index 7d8fc8a..297dbf7 100644 --- a/init.el +++ b/init.el @@ -597,6 +597,11 @@ :after org :hook ((org-babel-after-execute . org-redisplay-inline-images))) +(use-package ob-python + :after ob-core + :custom + (org-babel-python-command "python3")) + (use-package org-capture :after org :bind @@ -987,6 +992,7 @@ Calls `project-remember-project-under' for ~/Projects/" (use-package python :hook ((python-base-mode . (lambda () (my/enable-fill-column 88)))) :custom + (python-shell-interpreter "python3") (python-flymake-command (cond ((executable-find "ruff") '("ruff" "check" "-e" "--output-format" "pylint" "-")) ((executable-find "flake8") '("flake8" "--max-line-length" "88" "-"))