branch: externals/marginalia
commit 5802a5d78941573497c2c0e3c17f686ac45c50f6
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    readme: configuration example for selectrum refresh after marginalia-cycle
---
 README.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/README.md b/README.md
index 0c6fa5d..92631a9 100644
--- a/README.md
+++ b/README.md
@@ -51,6 +51,10 @@ commands.
   ;; enabled right away. Note that this forces loading the package.
   (marginalia-mode)
 
+  ;; When using Selectrum and `marginalia-cycle' as an Embark action,
+  ;; ensure that Selectrum is refreshed when cycling annotations.
+  (advice-add #'marginalia-cycle :after #'selectrum-exhibit)
+
   ;; Prefer richer, more heavy, annotations over the lighter default variant.
   ;; E.g. M-x will show the documentation string additional to the keybinding.
   ;; By default only the keybinding is shown as annotation.

Reply via email to