欢迎访问小程序员!

emacs安装auto-complete,自动补全

2014-04-27 0条评论 1488次浏览

1.下载auto-complete

2.解压

tar xf auto-complete-x.x.x.tar.bz2

3.安装

方法一:

            a.进入解压目录,打开emacs,M-x  load-file 回了个车,输入etc/install.el,回车

      b.将下面配置写入你的 .emacs

       

(add-to-list 'load-path "~/.emacs.d")    ; This may not be appeared if you have already added.
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(require 'auto-complete-config)
(ac-config-default)

方法二:

            a.进入解压目录:

$ make install $ make install DIR=$HOME/.emacs.d/

              b.写入配置文件



文档

发表评论

登录,将以游客形式发表

网友最新评论(0)