I am writing a document in Aquamacs, and I want some (not all) of the text to be in a different colour. Is this possible?

I googled it but could only see how to change the font colour of all the text.


1 Answer 1


The question is quite unclear. Please specify. What do you mean by putting some of the text in a different color?

  • Do you want syntax-specific highlighting? If so, turn on font-locking. And you might need to define font-lock-keywords for the current mode. See the Emacs manual, node Font Lock.

  • Do you want ad hoc highlighting? If so, try the Highlight library (highlight.el).

  • For information about font coloring and faces, see Emacs Wiki, Category Faces. Or ask Emacs: C-h r C-h i faces RET.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.