I couldn't find anything on this, so I'm asking it here. I can display a message in minibuffer with
(message "foo bar")
I would like to give only the message "foo bar" a red color in the minibuffer. Is that possible with Emacs?
I couldn't find anything on this, so I'm asking it here. I can display a message in minibuffer with
(message "foo bar")
I would like to give only the message "foo bar" a red color in the minibuffer. Is that possible with Emacs?
Just use a string with faces.
(message (propertize "foo bar" 'face 'highlight))
Or use a different face, which has a red foreground. Or use a face property list:
(message (propertize "foo bar" 'face '(:foreground "Red")))