[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 bd5115e1347: Remove Eglot activation check from find-file-hook
From: |
João Távora |
Subject: |
emacs-29 bd5115e1347: Remove Eglot activation check from find-file-hook |
Date: |
Fri, 3 Mar 2023 19:14:56 -0500 (EST) |
branch: emacs-29
commit bd5115e13479b1d81d6aa09efe362ad14d53c3c6
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
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.
---
lisp/progmodes/eglot.el | 1 -
1 file changed, 1 deletion(-)
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index a11ec0e4bbd..c74b13d3380 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 bd5115e1347: Remove Eglot activation check from find-file-hook,
João Távora <=