[Emacs] Fix python in org-babel

This commit is contained in:
Lucien Cartier-Tilet 2022-05-15 00:37:24 +02:00
parent 25a9a14534
commit 6344ef7292
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -4488,6 +4488,7 @@ activated. Here are the languages I activated in my Org-mode configuration:
| gnuplot | | gnuplot |
| latex | | latex |
| makefile | | makefile |
| python |
| sass | | sass |
| shell | | shell |
@ -4502,12 +4503,13 @@ activated. Here are the languages I activated in my Org-mode configuration:
"\n ")) "\n "))
#+END_SRC #+END_SRC
#+RESULTS[773757c6f64a90c690f49a47eaa3408ca7c80b64]: org-babel-languages-gen #+RESULTS[950a986eb2df1e9ebf0564f945fc997412fdf1f7]: org-babel-languages-gen
: '((C . t) : '((C . t)
: (emacs-lisp . t) : (emacs-lisp . t)
: (gnuplot . t) : (gnuplot . t)
: (latex . t) : (latex . t)
: (makefile . t) : (makefile . t)
: (python . t)
: (sass . t) : (sass . t)
: (shell . t)) : (shell . t))
@ -6883,7 +6885,6 @@ org-babel supports.
:init :init
(setq python-indent-guess-indent-offset-verbose nil) (setq python-indent-guess-indent-offset-verbose nil)
(add-hook 'python-mode-local-vars-hook #'lsp) (add-hook 'python-mode-local-vars-hook #'lsp)
(add-to-list 'org-babel-load-languages '(python . t))
:config :config
(setq python-indent-guess-indent-offset-verbose nil) (setq python-indent-guess-indent-offset-verbose nil)
(when (and (executable-find "python3") (when (and (executable-find "python3")