emacs:如何规定semantic分析语法的范围?

Vim、Emacs配置和使用
回复
头像
anix
帖子: 88
注册时间: 2009-05-18 22:33
联系:

emacs:如何规定semantic分析语法的范围?

#1

帖子 anix » 2011-11-16 22:56

代码: 全选

(global-semantic-highlight-func-mode 1)
(global-semantic-idle-scheduler-mode 1)
(setq-default semantic-idle-scheduler-idle-time 20)
打开了semantic-idle-scheduler-mode,发现其会默认解析部分不需要解析的文件类型,我想规定semantic只分析c/cpp语言,应该如何设定?

另外,我打开dotemacs,semantic后台解析总是报如下的错误:

代码: 全选

Idle Work Including Error: "#<buffer .emacs> - End of file during parsing"
已知我的dotemacs没有语法问题,请问出现这个错误是什么原因?
I firmly believe that the Internet and knowledge should be open, public, and accessible to everyone without any restrictions.
回复