Update README.md
This commit is contained in:
@@ -711,8 +711,7 @@ To configure `eglot`, add the following to `~/.emacs.d/post-init.el`:
|
|||||||
``` emacs-lisp
|
``` emacs-lisp
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:commands (eglot
|
:commands (eglot-ensure
|
||||||
eglot-ensure
|
|
||||||
eglot-rename
|
eglot-rename
|
||||||
eglot-format-buffer))
|
eglot-format-buffer))
|
||||||
```
|
```
|
||||||
@@ -737,8 +736,8 @@ Here is an example of how to configure Eglot to enable or disable certain option
|
|||||||
:yapf (:enabled :json-false)
|
:yapf (:enabled :json-false)
|
||||||
:rope_autoimport (:enabled :json-false)))))
|
:rope_autoimport (:enabled :json-false)))))
|
||||||
|
|
||||||
(add-hook 'python-mode-hook #'eglot)
|
(add-hook 'python-mode-hook #'eglot-ensure)
|
||||||
(add-hook 'python-ts-mode-hook #'eglot)
|
(add-hook 'python-ts-mode-hook #'eglot-ensure)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Session Management
|
### Session Management
|
||||||
|
|||||||
Reference in New Issue
Block a user