emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/marginalia b1ccaf8 124/241: readme: more robust selectr


From: Stefan Monnier
Subject: [elpa] externals/marginalia b1ccaf8 124/241: readme: more robust selectrum config
Date: Fri, 28 May 2021 20:49:11 -0400 (EDT)

branch: externals/marginalia
commit b1ccaf8d7feb05bc83405bce1c6f315368231dd6
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    readme: more robust selectrum config
---
 README.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 92631a9..4e50766 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,8 @@ commands.
 
   ;; 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)
+  (advice-add #'marginalia-cycle :after
+              (lambda () (when (bound-and-true-p selectrum-mode) 
(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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]