Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs/TextMate code completion for Erlang?

ESense looks dead; what are your recommendations for Erlang code completion in Emacs? It doesn't have to be fancy (ESense built an index from the Erlang source); even something that just uses Erlang's module_info/0 and module_info/1 functions for introspection of function names would help.

If one isn't available in Emacs, can you recommend one for TextMate?

like image 443
Duke of Erl Avatar asked Sep 21 '10 16:09

Duke of Erl


2 Answers

I've used auto-complete successfully.

  • site: http://cx4a.org/software/auto-complete/
  • code: https://github.com/m2ym/auto-complete/

and added this to my .emacs file:

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

; ... after loading erlang-mode

(add-to-list 'ac-modes 'erlang-mode)
like image 67
boorad Avatar answered Sep 28 '22 06:09

boorad


Do you know about distel already?

  • See Bill Clementson summarize distel mode and its features.
like image 37
Christian Avatar answered Sep 28 '22 07:09

Christian