font-lock-mode

Change Emacs syntax highlighting colors

I'm running Emacs, editing files in C++ mode and PHP mode. I love syntax highlighting as a concept, but the default colors are a travesty. I can barely read some of them: way too dark. What is the easiest way to change their values? I can't seem to find anything about this on the web. I don't even mind changing the binary as I'm compilin...

Font-lock-keywords: highlighting multiple sub-expression

When setting up font-lock-keywords for a GNU/Emacs mode, is it possible to highlight multiple sub-expressions of a regular expression with a single matcher? What I'd like to do is something along the lines of: ("\\(foo\\)-\\(bar\\)" '(1 foo-face) '(2 bar-face)) What would be the correct syntax for something like that - or do I have to...

What's the font-lock-mode for in emacs?

I have font-lock mode on by putting (global-font-lock-mode 1) in .emacs. And, with font-lock mode "your program certainly look different" as explained in page 274 of Learning GNU emacs. What I found was that, with python mode or org mode, when I change the font for that mode, some of the keywords are not shown because of the change in c...