Tweak `eglot' related comments
This commit is contained in:
parent
4e6598dc8e
commit
eeedd42d48
15
README.org
15
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
|
||||
|
Loading…
Reference in New Issue
Block a user