branch: externals/marginalia commit b1ccaf8d7feb05bc83405bce1c6f315368231dd6 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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.