分页: 1 / 1

[急]Emacs 配色问题, 求解决

发表于 : 2012-11-24 20:18
CppOrJava
问题0.
有一款不错的配色, 叫 Solarized. 支持 Emacs. 下载 color-theme-solarized.el 后, 我将其移动至 color-theme 所要求的目录.
然后: $emacs
<M-x>color-theme-select<RET>

第一第二个分别是:
Solarized Dark
Solarized Light

光标移动至 Solarized Dark 后, i. 嗯, 不错. d, 如以前设置配色一样, 我将显示的代码复制至了 .emacs.
显示代码是: (color-theme-solarized-dark)
完成后, <C-x C-c> $emacs
出现了如下的提示:
Warning (initialization): An error occurred while loading `/home/linux-is-the-best/.emacs':
Symbol's function definition is void: color-theme-solarized-dark
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
仍是默认配色, 求解.


问题1.
Emacs , 会对函数名, 变量名, 和类型名进行高亮.
而因此, 我经常看见一些高亮的错误, 还会导致人对代码错误的理解.
请问, 如何使 Emacs 只对编程语言的默认关键字进行高亮而不高亮函数名, 变量名和自定义的类型?

本人 Emacs 纯新手, 请大牛们多多指教.

Re: [急]Emacs 配色问题, 求解决

发表于 : 2012-11-26 0:14
ACGNX
很想吐槽楼主的用户名...
1. 贴出 .emacs
2. 这个可以自己修改配色, 可以在你下载的配置基础上修改. 插件目录下还有示例, 手机发帖, 不清楚具体路径.

Re: [急]Emacs 配色问题, 求解决

发表于 : 2012-12-01 13:45
CppOrJava
不必贴 .emacs 了, 我又转回 VIM 了, 谢谢.

Re: [急]Emacs 配色问题, 求解决

发表于 : 2012-12-01 23:56
reallynotme
CppOrJava 写了:不必贴 .emacs 了, 我又转回 VIM 了, 谢谢.
:em04

Re: [急]Emacs 配色问题, 求解决

发表于 : 2012-12-02 0:25
aphase
。。。。。。