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?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
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")))