Fix my .dir-locals.el proposal for Emacs-29.1

This commit is contained in:
Gerard Vermeulen 2022-11-07 10:46:34 +01:00
parent 67e67fb534
commit 100a4fad65

View File

@ -4335,13 +4335,16 @@ the the verbosity of [[https://github.com/python-lsp/python-lsp-server][python-l
(:cache_for ["astropy"]))))))
#+end_src
#+caption[Propose =directory-variables= to launch =eglot=]:
#+caption: Propose =directory-variables= in the root of any Python project to
#+caption: launch =eglot=.
#+caption[A =.dir-locals.el= proposal to launch =eglot= automatically]:
#+caption: A =.dir-locals.el= proposal for any Python project
#+caption: or any Org-mode project tangling Python files
#+caption: to launch =eglot= automatically.
#+name: lst:eglot-directory-variables-for-python
#+begin_src emacs-lisp :tangle dir-locals.el
;; Proposal for a .dir-locals.el file in the root of any Python project.
((python-mode
;; A .dir-locals.el file proposal in the root of any
;; Python project or Org-mode project tangling Python files
;; to launch eglot automatically.
((nil ;; nil, since Emacs-29.1 filters out irrelevant variable names.
. ((eglot-workspace-configuration
;; Disable the `:pyls_flake8' plugin to fall back to pycodestyle.
. (:pylsp (:plugins