Search code examples
javaemacsfont-lock

Emacs change color for variables in java mode


How to customize already defined color scheme in emacs. In my case, i have a java mode. I know how set background, or how set color to comments, but what should I do, to redefine color for variables only? In the best case I expect that I can move to needed region and redefine it with magic command...


Solution

  • To see what face is used for a particular character, move the point to that character and do M-x describe-char. It will tell you what faces are used, and from there you can customize them with M-x customize-face or with (set-face-attribute 'the-face nil :some-parameter value).