install auto-complete-mode in emacs

来源:互联网 发布:unity3d 弹出对话框 编辑:程序博客网 时间:2024/05/21 12:40

>> Download from Auto Complete Mode top page.

>> extract

tar xvjf auto-complete-1.3.1.tar.bz2

>> run emacs

M-x load-file RET

Note that if you want to upgrade auto-complete-mode, you have to install in a newly launched Emacs with -q option.

input the path where your install.el is.

e.g.

~/auto-complete-1.3.1/etc/install.el

Then input a directory where Auto Complete will be installed.

Finally type RET to start installation.

After installation, you may see the following buffer and follow instructions to edit .emacs.


Successfully installed!

Add the following code to your .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)

原创粉丝点击