Skip to content

victorolinasc/ob-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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.

Org-Babel

Babel provides what is known as literate programming to org-mode. The documentation is broad and can be found here.

Requirements

This is only tested on Emacs 24. You must have installed:

Usage

Clone repository and put ob-elixir.el in your Emacs load path.

Clone:

git clone https://github.com/victorolinasc/ob-elixir.git

Put in path

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”

Configure Babel

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.

Future work

  • 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?

About

Org-Mode Elixir language support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •