14

GitHub - zweifisch/ob-elixir: org-babel functions for elixir evaluation

 2 years ago
source link: https://github.com/zweifisch/ob-elixir
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ob-elixir

setup

To use ob-elixir in an org-babel source block, the elixir language must be enabled in the custom org-babel-load-languages alist. Alternatively, running the following snippet during initialization will enable the mode.

(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . t)
   (elixir . t)))

supported header arguments

  • cookie
  • remsh
  • sname
  • session

examples

connect to remote shell

#+BEGIN_SRC elixir :remsh name@node :sname console
Node.self
#+END_SRC

#+RESULTS:
: :name@node

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK