Please, see https://github.com/zweifisch/ob-elixir for a more complete and up-to-date solution that is also published to MELPA.
Org-Mode Elixir language support
This is a simple implementation of Elixir support for code blocks in org-mode.
Babel provides what is known as literate programming to org-mode. The documentation is broad and can be found here.
This is only tested on Emacs 24. You must have installed:
Clone repository and put ob-elixir.el in your Emacs load path.
git clone https://github.com/victorolinasc/ob-elixir.git
Add ob-elixir.el to your load path. Example:
(add-to-list 'load-path "~/.emacs.d/lisp/")
Then copy file ob-elixir.el to “~/.emacs.d/lisp”
Then you need to configure babel support in org-mode. Add this to your configuration:
(require 'ob-elixir)
;; example of adding languages to babel
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(sh . t)
(elixir . t)
(org . t)
(ditaa . t)))
Then source code blocks can be interpreted in org-mode.
- Persistent sessions – could be backed by emacs comint or distel style distributed erlang.
- Avoid having to call IO.inspect to return a value.
- Parsing reader values
- Optionally cleanup .exs file
- Publish to MELPA, MARMELADE?