Remove Eglot activation check from find-file-hook
Adding eglot--maybe-activate-editing-mode to find-file-hook isn't really necessary, since it is already in 'after-change-major-mode-hook', and that also runs every time we find a file. This reduces the number of project.el logic that runs every time the user visits a file. * lisp/progmodes/eglot.el (find-file-hook): No need to add eglot--maybe-activate-editing-mode here.
This commit is contained in:
parent
adc04ad524
commit
bd5115e134
1 changed files with 0 additions and 1 deletions
|
@ -1924,7 +1924,6 @@ If it is activated, also signal textDocument/didOpen."
|
|||
;; about the buffer.
|
||||
(run-hooks 'eglot-managed-mode-hook))))
|
||||
|
||||
(add-hook 'find-file-hook 'eglot--maybe-activate-editing-mode)
|
||||
(add-hook 'after-change-major-mode-hook 'eglot--maybe-activate-editing-mode)
|
||||
|
||||
(defun eglot-clear-status (server)
|
||||
|
|
Loading…
Add table
Reference in a new issue