From eeedd42d48c1fa4e6317663864c7b64a966874fc Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Mon, 23 Sep 2024 10:06:34 +0200 Subject: [PATCH] Tweak `eglot' related comments --- README.org | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.org b/README.org index 93b2b56..44241a1 100644 --- a/README.org +++ b/README.org @@ -3746,6 +3746,10 @@ listings set up [[https://github.com/joaotavora/eglot][Eglot]]: (keymap-set eglot-mode-map "C-c n" 'flymake-goto-next-error) (keymap-set eglot-mode-map "C-c p" 'flymake-goto-prev-error) (keymap-set eglot-mode-map "C-c r" 'eglot-rename)) + +;; Does not make me happy: +;; (require 'eglot) +;; (add-hook 'python-mode-hook #'eglot-ensure) #+end_src #+caption: Setup ~oglot~ for ~python-mode~. @@ -4888,11 +4892,12 @@ representation of src_emacs-lisp[:results none]{(describe-variable #+caption: projects tangling Python files to launch =eglot= automatically. #+name: lst:eglot-directory-variables-for-python #+begin_src emacs-lisp -n :eval never :tangle dir-locals.el -;; A .dir-locals.el file proposal in the root of any -;; Python project or Org-mode project tangling Python files -;; to launch eglot automatically. -;; Ensure to enable the pylsp_ruff plugin. -;; Ensure to uninstall the flake8, mccabe, and pycodestyle Python packages. +;; A .dir-locals.el file proposal in the root of any Python project +;; (fails) or Org-mode project tangling Python files (works) to launch +;; eglot automatically. + +;; Ensure to enable the pylsp_ruff plugin and to uninstall the flake8, +;; mccabe, and pycodestyle Python packages. ((nil ;; nil, since Emacs filters out irrelevant mode names. . ((eglot-workspace-configuration . (:pylsp (:plugins