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

Vim、Emacs配置和使用
回复
头像
CppOrJava
帖子: 30
注册时间: 2012-08-04 22:08
系统: Ubuntu 12.04

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

#1

帖子 CppOrJava » 2012-11-24 20:18

问题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 纯新手, 请大牛们多多指教.
头像
ACGNX
帖子: 87
注册时间: 2012-07-12 14:02

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

#2

帖子 ACGNX » 2012-11-26 0:14

很想吐槽楼主的用户名...
1. 贴出 .emacs
2. 这个可以自己修改配色, 可以在你下载的配置基础上修改. 插件目录下还有示例, 手机发帖, 不清楚具体路径.
头像
CppOrJava
帖子: 30
注册时间: 2012-08-04 22:08
系统: Ubuntu 12.04

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

#3

帖子 CppOrJava » 2012-12-01 13:45

不必贴 .emacs 了, 我又转回 VIM 了, 谢谢.
reallynotme
帖子: 157
注册时间: 2010-11-11 18:13
系统: Ubuntu

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

#4

帖子 reallynotme » 2012-12-01 23:56

CppOrJava 写了:不必贴 .emacs 了, 我又转回 VIM 了, 谢谢.
:em04
头像
aphase
帖子: 20
注册时间: 2012-10-21 18:04
系统: Win7

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

#5

帖子 aphase » 2012-12-02 0:25

。。。。。。
回复