-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mode hook for eglot? #182
Comments
There is no explicit user-visible mode-hook for Eglot right now, because I haven't yet decided on what the desired semantics of that hook should be. There is, though, an internal |
I want the mode hook to enable
I mean if Feel free to close this. I have what I need now : P |
Let's not close this. I still haven'tmade eglot-managed-mode-hook public |
Bump. I think it would be useful to disable/remove hooks for capf/eldoc/imenu/etc. that aren't configurable. |
Per joaotavora/eglot#354. * eglot.el (eglot-managed-p): New function. (eglot--managed-mode-hook): Obsolete it. (eglot-managed-mode-hook): New hook variable. (eglot--managed-mode): Run the new hook. * README.md (Customization): Mention the new hook.
Per joaotavora/eglot#354. * eglot.el (eglot-managed-p): New function. (eglot--managed-mode-hook): Obsolete it. (eglot-managed-mode-hook): New hook variable. (eglot--managed-mode): Run the new hook. * README.md (Customization): Mention the new hook.
Per #354. * eglot.el (eglot-managed-p): New function. (eglot--managed-mode-hook): Obsolete it. (eglot-managed-mode-hook): New hook variable. (eglot--managed-mode): Run the new hook. * README.md (Customization): Mention the new hook. #182: joaotavora/eglot#182 #354: joaotavora/eglot#354
Per joaotavora/eglot#354. * eglot.el (eglot-managed-p): New function. (eglot--managed-mode-hook): Obsolete it. (eglot-managed-mode-hook): New hook variable. (eglot--managed-mode): Run the new hook. * README.md (Customization): Mention the new hook. GitHub-reference: fix joaotavora/eglot#182
Is there a hook like other major/minor mode hooks for eglot?
I looked into
eglot-connect-hook
but 1) it passes arguments into functions in hook, that's not good in some cases 2) Is it supposed to be used as a mode hook for eglot? I.e., get called when eglot is enabled. Or it has other purposes?The text was updated successfully, but these errors were encountered: