I want to display a colored string of text in the minibuffer, but when I use the 'message' function, the text-properties of are stripped.
Works for me:
(message "%s" (propertize "foo" 'face '(:foreground "red")))
You probably had (message (propertize ...))
, which interprets the propertized string as a format control string, hence stripped of its properties.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With