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

    embark-consult: Register consult--default-completion-list-preview-setup
    
    This replaces consult-preview-at-point-mode
---
 embark-consult.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/embark-consult.el b/embark-consult.el
index 80e5c866c7..c6442592a6 100644
--- a/embark-consult.el
+++ b/embark-consult.el
@@ -503,5 +503,10 @@ Meant as :after-until advice for 
`embark-collect--metadatum'."
              #'embark-consult-imenu-or-outline-candidates
              'append)
 
+;; Automatically preview in live collect buffer
+(when (fboundp 'consult--default-completion-list-preview-setup)
+  (add-hook 'embark-collect-mode-hook
+            'consult--default-completion-list-preview-setup))
+
 (provide 'embark-consult)
 ;;; embark-consult.el ends here

Reply via email to