branch: externals/embark
commit b73a704b87283dd9eed50cc60bfe1932339ea24e
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    README: Add the eldoc function to the example configuration
---
 README.org  | 4 ++++
 embark.texi | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/README.org b/README.org
index 5866d3799c..45ebc33a16 100644
--- a/README.org
+++ b/README.org
@@ -306,6 +306,10 @@ starting configuration:
     ;; Optionally replace the key help with a completing-read interface
     (setq prefix-help-command #'embark-prefix-help-command)
 
+    ;; Show the Embark target at point via Eldoc
+    (setq eldoc-documentation-strategy #'eldoc-documentation-compose-eagerly)
+    (add-hook 'eldoc-documentation-functions #'embark-eldoc-first-target)
+
     :config
 
     ;; Hide the mode line of the Embark live/completions buffers
diff --git a/embark.texi b/embark.texi
index 7b90eda7b6..7059115819 100644
--- a/embark.texi
+++ b/embark.texi
@@ -417,6 +417,10 @@ starting configuration:
   ;; Optionally replace the key help with a completing-read interface
   (setq prefix-help-command #'embark-prefix-help-command)
 
+  ;; Show the Embark target at point via Eldoc
+  (setq eldoc-documentation-strategy #'eldoc-documentation-compose-eagerly)
+  (add-hook 'eldoc-documentation-functions #'embark-eldoc-first-target)
+
   :config
 
   ;; Hide the mode line of the Embark live/completions buffers

Reply via email to