emacs安装auto-complete(支持Erlang)

下载:

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的根目录下

目录如图:

emacs安装auto-complete(支持Erlang)_第1张图片


auto-complete安装方法,参见:http://cx4a.org/software/auto-complete/manual.html#Installation

安装后重启emacs,如果提示:

cannot load cl-lib

则可以采取如下解决方案:

  1. create new directory cl-lib in your .emacs.d directory
  2. put this file into this cl-lib directory
  3. add at top of your .emacs file these strings:
    • (add-to-list 'load-path "/path_to_your.emacs.d/cl-lib/")
    • (require 'cl-lib)
(注:引自http://stackoverflow.com/questions/20678847/cannot-load-cl-lib-at-emacs-startup)

效果:

emacs安装auto-complete(支持Erlang)_第2张图片


你可能感兴趣的:(Erlang,emacs)