俺听说Emacs可以自动补全,于是参照此篇文章(http://cx4a.org/software/gccsense/manual.html)配置自己的Emacs,我按照上面的说法一步步安装并验证,但安装好之后并不能像人言说的那样补全代码呃~
Emacs每次重启都是报一样的错误:
Warning (initialization): An error occurred while loading `/home/huycwork/.emacs':
File error: Cannot open load file, gccsense
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.
而我用--debug-init模式运行得到的却是找不到文件/usr/share/emacs/23.1/lisp/international/mule.el、/usr/share/emacs/23.1/lisp/startup.el的错误。我去找文件夹,发现文件夹里面的文件是有的,只是是elc后缀而非el。而我把相应的el文件下载下来后,发现是执行文件里面的脚本时抛出的Cannot open load file。
我用的是Emacs 23.1,和这个有关系吗?
杯具的Emacs代码补全,求助!!
-
- 帖子: 12
- 注册时间: 2009-08-03 20:12
- soeyzhang
- 帖子: 6
- 注册时间: 2010-12-02 15:58
-
- 帖子: 12
- 注册时间: 2009-08-03 20:12
Re: 杯具的Emacs代码补全,求助!!
额,我就是参照那个网页的配置呃~
话说,大侠用过CEDET没?我照着这篇文章:http://emacser.com/cedet.htm配置cedet也有问题,我是直接在新利得里面找到cedet的,然后我照着里面的说明加入配置,我非常确定已经加入了如下代码:
代码: 全选
;; (setq semanticdb-project-roots (list (expand-file-name "/")))
(defconst cedet-user-include-dirs
(list ".." "../include" "../inc" "../common" "../public"
"../.." "../../include" "../../inc" "../../common" "../../public"))
(require 'semantic-c nil 'noerror)
(let ((include-dirs cedet-user-include-dirs))
(mapc (lambda (dir)
(semantic-add-system-include dir 'c++-mode)
(semantic-add-system-include dir 'c-mode))
include-dirs))
网页中截图的IDE工程管理界面也没有出现诶!

求解~
-
- 帖子: 70
- 注册时间: 2010-10-12 23:52
-
- 帖子: 12
- 注册时间: 2009-08-03 20:12
Re: 杯具的Emacs代码补全,求助!!
既然能够检查到配置文件的错误,自然也就能够载入嘛~onemoo 写了:无法载入配置文件!?