casouri / eldoc-box

childframe doc for eglot and anything that uses eldoc
361 stars 26 forks source link

how to disable "embark on _____" messages from appearing #86

Open margaretjoanmiller opened 1 year ago

margaretjoanmiller commented 1 year ago

is there a way to prevent the "embark on _____" messages from appearing in eldoc-boxes? eldoc box example of embark message

casouri commented 1 year ago

It seems to be some message that Embark displays using eldoc functionality? You can take a look at eldoc-documentation-functions and see if there's anything you can configure.

jeff-phil commented 1 year ago

@0x4d6165 This is caused by this hook that I assume you have set:

(add-hook 'eldoc-documentation-functions #'embark-eldoc-first-target)

Here's the full text from example config on #oantolin/embark

;; Show the Embark target at point via Eldoc.  You may adjust the Eldoc
;; strategy, if you want to see the documentation from multiple providers.
(add-hook 'eldoc-documentation-functions #'embark-eldoc-first-target)
;; (setq eldoc-documentation-strategy #'eldoc-documentation-compose-eagerly)

States you can adjust strategy, but I found out it was still just to chatty and took-out that hook.