branch: externals/marginalia
commit 9d2f3196d957fec33e6c47e139214f6b8b7b453e
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
marginalia-annotate-variable: add modification indicator
---
marginalia.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/marginalia.el b/marginalia.el
index fbca12e..73687cf 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -358,6 +358,9 @@ This hash table is needed to speed up
`marginalia-annotate-command-binding'.")
(let ((sym (intern cand)))
(when-let (doc (documentation-property sym 'variable-documentation))
(marginalia--fields
+ ((if (and (boundp sym) (not (equal (symbol-value sym) (default-value
sym))))
+ "*" " ")
+ :face 'marginalia-modified)
((if (boundp sym) (symbol-value sym) 'unbound)
:truncate (/ marginalia-truncate-width 3) :format "%S" :face
'marginalia-variable)
(doc :truncate marginalia-truncate-width :face
'marginalia-documentation)))))