el-get-install安装auto-complete
emacsConfig/auto-complete-setting.el
1 ;这个是设置一个字母就自动完成的 2 (setq ac-auto-start 1) 3 (setq ac-auto-show-menu 0.05) 4 (setq auto-complete-mode t) 5 6 (setq ac-quick-help-prefer-pos-tip t) 7 (setq ac-use-quick-help t) 8 (setq ac-quick-help-delay 0.5) 9 10 ;这行不能缺,否则会出现ac-dictionary-directories的错误 11 (require 'auto-complete-config) 12 (add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict") 13 (ac-config-default) 14 15 ;alt+/补全 16 (global-set-key (kbd "<M-/>") 'auto-complete)