Eglot: restore eldoc-documentation-functions on shutdown
* lisp/progmodes/eglot.el (eglot--managed-mode): Restore eldoc-documentation-functions when shutting down eglot.
This commit is contained in:
parent
711a775ba7
commit
7ad5d9babe
1 changed files with 2 additions and 0 deletions
|
@ -1799,6 +1799,8 @@ Use `eglot-managed-p' to determine if current buffer is managed.")
|
|||
(remove-hook 'change-major-mode-hook #'eglot--managed-mode-off t)
|
||||
(remove-hook 'post-self-insert-hook 'eglot--post-self-insert-hook t)
|
||||
(remove-hook 'pre-command-hook 'eglot--pre-command-hook t)
|
||||
(remove-hook 'eldoc-documentation-functions #'eglot-hover-eldoc-function t)
|
||||
(remove-hook 'eldoc-documentation-functions #'eglot-signature-eldoc-function t)
|
||||
(cl-loop for (var . saved-binding) in eglot--saved-bindings
|
||||
do (set (make-local-variable var) saved-binding))
|
||||
(remove-function (local 'imenu-create-index-function) #'eglot-imenu)
|
||||
|
|
Loading…
Add table
Reference in a new issue