Emacs 代码补全 AutoComplete


下载: wget http://cx4a.org/pub/auto-complete/auto-complete-1.3.1.tar.bz2

解压: tar jxvf auto-complete-1.3.1.tar.bz2

进入目录: cd auto-complete-1.3.1

编译: make

安装: make install

选择目录: ~/.emacs.d/


拷贝代码至 .emacs 中:

(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict")
(ac-config-default)


个人偏好设置:

(set-face-background 'ac-candidate-face "lightgray")
(set-face-underline 'ac-candidate-face "lightblue")
(set-face-background 'ac-selection-face "lightblue")




你可能感兴趣的:([Emacs])