From 1963d9d2c158ed238f014dab61e7f3733768bf19 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sun, 26 Dec 2021 11:49:23 +0100 Subject: [PATCH] Move Python configuration --- README.org | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index b1b50a1..d99703c 100644 --- a/README.org +++ b/README.org @@ -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