Update instruction to use with eglot

* README.org: Change eglot--managed-mode-hook to eglot-managed-mode-hook
This commit is contained in:
Koki Fukuda 2022-04-13 23:58:01 +09:00
parent c0cbb8d919
commit 8cc575d7d4

View File

@ -38,7 +38,7 @@ It is also available on [[https://melpa.org/#/eldoc-box][MELPA]].
** Use with eglot ** Use with eglot
As of writing this README, eglot doesn't have a public mode hook, use this hook: As of writing this README, eglot doesn't have a public mode hook, use this hook:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(add-hook 'eglot--managed-mode-hook #'eldoc-box-hover-mode t) (add-hook 'eglot-managed-mode-hook #'eldoc-box-hover-mode t)
#+END_SRC #+END_SRC
To keep eldoc from displaying documentation at point without enabling any minor mode above: =(add-to-list 'eglot-ignored-server-capabilites :hoverProvider)=. To keep eldoc from displaying documentation at point without enabling any minor mode above: =(add-to-list 'eglot-ignored-server-capabilites :hoverProvider)=.