Move Python configuration

This commit is contained in:
Gerard Vermeulen 2021-12-26 11:49:23 +01:00
parent 107587e01f
commit 1963d9d2c1

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]]. 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]:
#+caption: Configure =eglot= for Python. #+caption: Configure =eglot= for Python.
#+label: lst:configure-eglot-for-python #+label: lst:configure-eglot-for-python
@ -1634,16 +1644,6 @@ Python org-mode edit-buffers in ~anaconda-mode~.
print(q) print(q)
#+end_src #+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=]:
#+caption: Enable =pyenv-mode=. #+caption: Enable =pyenv-mode=.
#+label: lst:enable-pyenv-mode #+label: lst:enable-pyenv-mode