]> git.eshelyaron.com Git - emacs.git/commit
Eglot: run eglot-managed-mode-hook after LSP didOpen
authorJoão Távora <joaotavora@gmail.com>
Wed, 22 Feb 2023 18:44:39 +0000 (18:44 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 22 Feb 2023 18:52:00 +0000 (18:52 +0000)
commit28ed0d1840f94ba52b8b60bfbf222493fee2a3ea
tree76f7a87d2ee690e410025592780d9fdf0c589b76
parent7ad5d9babed68ddb8cc4bdf7571fdf10e44e1bae
Eglot: run eglot-managed-mode-hook after LSP didOpen

This allows using the hook for interacting with the LSP server using
the current buffer as the subject of that interaction ("document" in
LSP parlance).

* lisp/progmodes/eglot.el (eglot--maybe-activate-editing-mode):
Run eglot-managed-mode-hook here.
(eglot--managed-mode): Not here.
lisp/progmodes/eglot.el