下载:
1.auto-complete:https://github.com/auto-complete/auto-complete
将autocomplete.el的defcustom ac-modes中加入 erlang-mode
2.fuzzy.el
将fuzzy.el放在auto-complete的根目录下
3.popup:https://github.com/auto-complete/popup-el
将popup.el放在auto-complete的根目录下
目录如图:
auto-complete安装方法,参见:http://cx4a.org/software/auto-complete/manual.html#Installation
安装后重启emacs,如果提示:
cannot load cl-lib
则可以采取如下解决方案:
- create new directory cl-lib in your .emacs.d directory
- put this file into this cl-lib directory
- add at top of your .emacs file these strings:
- (add-to-list 'load-path "/path_to_your.emacs.d/cl-lib/")
- (require 'cl-lib)
效果: