Move Python configuration

This commit is contained in:
Gerard Vermeulen 2021-12-26 11:49:23 +01:00
parent 107587e01f
commit 1963d9d2c1
1 changed files with 10 additions and 10 deletions

View File

@ -1550,6 +1550,16 @@ built-in ~python-mode~. Here, the focus is on two packages:
2. [[https://github.com/pythonic-emacs/anaconda-mode][Anaconda - code navigation, documentation lookup, and completion for Python]].
#+caption[Configure =python=]:
#+caption: Configure =python=.
#+label: lst:configure-python
#+begin_src elisp
(with-eval-after-load 'python
(custom-set-variables
'(python-indent-guess-indent-offset nil)
'(python-shell-interpreter-args "-i -E")))
#+end_src
#+caption[Configure =eglot= for Python]:
#+caption: Configure =eglot= for Python.
#+label: lst:configure-eglot-for-python
@ -1634,16 +1644,6 @@ Python org-mode edit-buffers in ~anaconda-mode~.
print(q)
#+end_src
#+caption[Configure =python=]:
#+caption: Configure =python=.
#+label: lst:configure-python
#+begin_src elisp
(with-eval-after-load 'python
(custom-set-variables
'(python-indent-guess-indent-offset nil)
'(python-shell-interpreter-args "-i -E")))
#+end_src
#+caption[Enable =pyenv-mode=]:
#+caption: Enable =pyenv-mode=.
#+label: lst:enable-pyenv-mode