Ensure python processes use python3
This affects python-mode and ob-python
This commit is contained in:
parent
6e0c760d97
commit
9b5fe41740
6
init.el
6
init.el
|
@ -597,6 +597,11 @@
|
||||||
:after org
|
:after org
|
||||||
:hook ((org-babel-after-execute . org-redisplay-inline-images)))
|
: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
|
(use-package org-capture
|
||||||
:after org
|
:after org
|
||||||
:bind
|
:bind
|
||||||
|
@ -987,6 +992,7 @@ Calls `project-remember-project-under' for ~/Projects/"
|
||||||
(use-package python
|
(use-package python
|
||||||
:hook ((python-base-mode . (lambda () (my/enable-fill-column 88))))
|
:hook ((python-base-mode . (lambda () (my/enable-fill-column 88))))
|
||||||
:custom
|
:custom
|
||||||
|
(python-shell-interpreter "python3")
|
||||||
(python-flymake-command
|
(python-flymake-command
|
||||||
(cond ((executable-find "ruff") '("ruff" "check" "-e" "--output-format" "pylint" "-"))
|
(cond ((executable-find "ruff") '("ruff" "check" "-e" "--output-format" "pylint" "-"))
|
||||||
((executable-find "flake8") '("flake8" "--max-line-length" "88" "-"))
|
((executable-find "flake8") '("flake8" "--max-line-length" "88" "-"))
|
||||||
|
|
Loading…
Reference in a new issue