更改Emacs语法高亮颜色 [英] Change Emacs syntax highlighting colors

查看:155
本文介绍了更改Emacs语法高亮颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Emacs,以C ++模式和PHP模式编辑文件。我喜欢语法高亮作为一个概念,但默认的颜色是一个耻辱。我几乎看不到其中的一些:太暗了什么是最简单的方法来改变他们的价值观?我似乎没有在网上找到任何关于这一点。我甚至不介意在编译我自己的Emacs时改变二进制文件。我只想找到蓝色的地方是#0000FF,并将其更改为#AAAAFF。

解决方案

我发现对于这种事情,最容易使用颜色主题。



https://www.emacswiki.org/emacs/ColorThemes



但是,如果你不想这样做,把光标放在有罪的文字,点击 Mx custom-face 。它应该默认为光标结束的脸。



http://www.gnu.org/software/emacs/manual/html_node/emacs/Specific-Customization.html


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.

解决方案

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 the cursor over the offending text, hit M-x customize-face. It should default to the face that the cursor is over.

http://www.gnu.org/software/emacs/manual/html_node/emacs/Specific-Customization.html

这篇关于更改Emacs语法高亮颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆