Distel-completion is an Erlang completion library for both
auto-complete-mode
company-mode
using Distel as a backend.(require 'auto-complete-distel)
(add-to-list 'ac-sources 'auto-complete-distel)
(require 'company-distel)
(add-to-list 'company-backends 'company-distel)
There is also optional parameters which can be modified.
(setq company-distel-popup-help t)
This will render company's doc-buffer (default <F1> when on a completion-candidate) in a small popup (using popup.el) instead of showing the whole help-buffer.
(setq company-distel-popup-height 30)
This variable specifies the height of the help popup created by company.
Get the documentation from the internet:
(setq distel-completion-get-doc-from-internet t)
Change the allowed symbols to skip backwords in order to find start-of-word. (showing defaults)
(setq distel-completion-valid-syntax "a-zA-Z:_-")
fail: [rex [badrpc [EXIT [undef ([distel describe (io format 3) nil]
[rpc -handle_call_call/6-fun-0- 5 ([file rpc.erl] [line 206])])]]]]
This error comes when trying to get the documentation for a completion
candidate. It actually uses same functionality as erl-fdoc-describe
(C-c C-d d), and if this function stops at "Sent request; waiting for
results..", it is the same fault.
In company-mode restart completion after completing a module.
Show whether the completion candidate is of a module or a local function.
Add some formatting to documentation-buffer.