Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to create an custom theme so that emacs changes the background/foreground color of the line of text when that line has some keyword?

I see this tip http://emacs-fu.blogspot.ca/2010/04/creating-custom-modes-easy-way-with.html

but it only changes the color of the keyword. I want to change the whole line color when it has the keyword.

Thank you.

share|improve this question
Do you need to create a theme for this, or is highlight-lines-matching-regexp what you are looking for? –  Juancho Nov 20 '12 at 13:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.