ironsand
ironsand

Reputation: 15181

How to change a specify color in a major mode with Emacs

I'm using web-mode with white background in Emacs. Then the yellow color is too bright to see.

I want to make the yellow a little more darker. Is there general way to change a specify color in a major mode, and how?

Or it's depends on each major mode how to change a specify color?

Upvotes: 2

Views: 588

Answers (1)

phils
phils

Reputation: 73365

There are general mechanisms for defining character colours and properties, but many ways in which they could be applied.

I would start by moving the cursor to one of the characters in question, and typing C-uC-x= (or M-x describe-char), which will give you lots of information, and will likely include a 'face' link which you can follow to get more information, including another link to the customize interface, where you should be able to edit it.

It's not always that simple, but there's a decent chance that this will be sufficient. Typically the name of the face will be a fair indication of whether you are editing the right thing.

Upvotes: 2

Related Questions