mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
fix(org): update org-babel-python-command-nonsession
Ref: bzg/org-mode@9239b0e8d1
This commit is contained in:
@@ -286,9 +286,9 @@ Also adds support for a `:sync' parameter to override `:async'."
|
||||
(end (progn (goto-char beg) (forward-line) (org-babel-result-end))))
|
||||
(org-display-inline-images nil nil (min beg end) (max beg end)))))))
|
||||
|
||||
(after! python
|
||||
(unless org-babel-python-command
|
||||
(setq org-babel-python-command
|
||||
(after! ob-python
|
||||
(when (equal org-babel-python-command-nonsession "python")
|
||||
(setq org-babel-python-command-nonsession
|
||||
(string-trim
|
||||
(concat python-shell-interpreter " "
|
||||
(if (string-match-p "\\<i?python[23]?$" python-shell-interpreter)
|
||||
|
Reference in New Issue
Block a user