all repos — nixfiles @ 2f9f01c6d1ef0b690b3121d4a85b263634f988a4

System and user configuration, managed by nix and home-manager

emacs: make eglot quiet on connection
Alan Pearce alan@alanpearce.eu
Sun, 28 Apr 2024 09:15:41 +0200
commit

2f9f01c6d1ef0b690b3121d4a85b263634f988a4

parent

d960a2fda8b3f3e55ce9e970b158e206d7202feb

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1063,6 +1063,8 @@ nix-mode-hook             haskell-mode-hook)
           #'eglot-ensure)
   :config (progn
+            (advice-add 'eglot--message :before-while (lambda (formatstring &rest rest)
+                                                        (s-starts-with-p "Connected!" formatstring)))
             (defun my/setup-eglot-eldoc ()
               (push 'flymake-eldoc-function eldoc-documentation-functions))
             (add-hook 'eglot-managed-mode-hook 'my/setup-eglot-eldoc)