比如说,我在单个文件里定义了一个
代码: 全选
struct A
{
unsigned int b;
unsigned int c;
};
另外,emacs可不可以让代码中的变量也改变颜色阿?就像win下面大部分的IDE那样。
代码: 全选
struct A
{
unsigned int b;
unsigned int c;
};
.laoli_no1 写了:找到问题了,我的一个配置C格式的出问题了,呵呵,网上的方法还是蛮有效果的,多谢楼上的指点
话说,没有办法让变量都改变颜色阿?就像win下的IDE基本都可以的那种
M-x customize-face --> font-lock-variable-name-face <RET> --> In the Customize face buffer, you can set it to any style you like --> Click "Set for current session", then "Save for future sessions", final "Exit"laoli_no1 写了:能不能说的稍稍详细一点?我在网上搜了一下,还是不得要领
As I know, no.laoli_no1 写了:我用了color-theme的配色方案,和这个有冲突么?
Did you see the option "Foreground"?一堆选项看得我头晕
"Save for future sessions" would save your choice in your .emacs file automatically.有没有直接写在.emacs文件里的配置阿?
代码: 全选
unsigned char a;
void main(void)
{
a = 0;
for(;;);
}
There is no simply method to support that, but you can use the interface of semantic package to implement it. It's not difficult, but you should know both elisp and semantic package well. If not, it would be time-consuming.laoli_no1 写了:多谢楼上的帮助,照你的方法尝试了一下,不过你好像误会我的意思了
我的意思是,比如我定义第一个a会变颜色,但是第二个a不会代码: 全选
unsigned char a; void main(void) { a = 0; for(;;); }
能不能让第二个a也变颜色阿