summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-28 09:15:41 +0200
committerAlan Pearce2024-04-28 09:15:41 +0200
commit2f9f01c6d1ef0b690b3121d4a85b263634f988a4 (patch)
tree2a26a0dbe3fb6e45ac1c9ae997b4607447f5aad3
parentd960a2fda8b3f3e55ce9e970b158e206d7202feb (diff)
downloadnixfiles-2f9f01c6d1ef0b690b3121d4a85b263634f988a4.tar.lz
nixfiles-2f9f01c6d1ef0b690b3121d4a85b263634f988a4.tar.zst
nixfiles-2f9f01c6d1ef0b690b3121d4a85b263634f988a4.zip
emacs: make eglot quiet on connection
-rw-r--r--user/emacs/init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index c7b995fa..9f8d18e4 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1063,6 +1063,8 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
             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)