emacs无法自动补齐?

Vim、Emacs配置和使用
回复
chp845
帖子: 31
注册时间: 2009-12-05 23:27

emacs无法自动补齐?

#1

帖子 chp845 » 2012-12-14 9:41

我安装自动提示的插件:(配置为)
;;cedet
(add-to-list 'load-path
"/usr/share/emacs/cedet-1.1/common")
(load-file "/usr/share/emacs/cedet-1.1/common/cedet.el")
;(global-ede-mode 1) ; Enable the Project management system
;(semantic-load-enable-code-helpers) ; Enable prototype help and smart completion
;(global-srecode-minor-mode 1) ; Enable template insertion menu
;;设置检索范围
;(setq semanticdb-project-roots
;(list
;(expand-file-name "/")));;可以设置为项目的顶级目录
;;绑定按键,ctr+tab,以下三种,任意选择一个,我喜欢第二个
;;(global-set-key [(control tab)] 'senator-complete-symbol);
;;(global-set-key [(control tab)] ' senator-completion-menu-popup)
(global-set-key [(control tab)] 'semantic-ia-complete-symbol-menu)

操作:
打开emacs后,file->openfile 打开一个c++ cpp文件,但是我输入的时候按Control tab 没有自动补齐,出现下面记录!

Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /usr/share/emacs/cedet-1.1/common/cedet.el (source)...
Setting up CEDET packages...done
Loading /usr/share/emacs/cedet-1.1/common/cedet.el (source)...done
ECB 2.40 uses CEDET 1.1 (contains semantic 2.1, eieio 1.4, speedbar 1.0.4).
For information about GNU Emacs and the GNU system, type C-h C-a.
All requirements for ECB 2.40 fulfilled - Enjoy it!
The ECB is now activated.
byte-code: Beginning of buffer [3 times]
ad-Orig-custom-save-all: Cannot save customizations; init file was not fully loaded
ECB 2.40 - Info: ecb-options-version saved! [2 times]
File mode specification error: (wrong-type-argument stringp 1)
Auto-saving...
Mark set
semantic-analyze-current-context: Cannot analyze buffers not supported by Semantic
mouse-minibuffer-check: Minibuffer window is not active [2 times]
semantic-analyze-current-context: Cannot analyze buffers not supported by Semantic
mouse-minibuffer-check: Minibuffer window is not active
semantic-analyze-current-context: Cannot analyze buffers not supported by Semantic
mouse-minibuffer-check: Minibuffer window is not active
xgdgsc
帖子: 277
注册时间: 2010-02-25 11:02
系统: Arch x64

Re: emacs无法自动补齐?

#2

帖子 xgdgsc » 2012-12-14 12:17

配置一下auto-complete,不过emacs自动补全很废品,建议c++用qtcreator
回复