]> git.eshelyaron.com Git - emacs.git/commit
Remove Eglot activation check from find-file-hook
authorJoão Távora <joaotavora@gmail.com>
Sat, 4 Mar 2023 00:09:32 +0000 (00:09 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sat, 4 Mar 2023 00:16:41 +0000 (00:16 +0000)
commitbd5115e13479b1d81d6aa09efe362ad14d53c3c6
treee4583cc16d867678b649d45d1dc42d365501bf20
parentadc04ad52474113e5a540b33fbefd389b861a89f
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