font-lock-mode

Change Emacs syntax highlighting colors

余生长醉 提交于 2019-11-29 19:51:15
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 compiling my own Emacs. I just want to find the place where it says blue is #0000FF and change it to #AAAAFF for example. seth I find it easiest to use color-theme for this sort of thing. https://www.emacswiki.org/emacs/ColorThemes But if you don't want to do that, put

Change Emacs syntax highlighting colors

徘徊边缘 提交于 2019-11-28 14:35:03
问题 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 compiling my own Emacs. I just want to find the place where it says blue is #0000FF and change it to #AAAAFF for example. 回答1: I find it easiest to use color-theme