ob-ammonite

org-babel for scala evaluation in Ammonite.


Keywords
tools, ammnite, org-mode, scala, org-babel
License
GPL-3.0

Documentation

ob-ammonite.el

org-babel for scala evaluation in ammonite-term-repl.

https://melpa.org/packages/ob-ammonite-badge.svg

Install

brew install ammonite-repl

It is recommended installed by the MELPA package system.

You could install it by M-x: with package-install: ob-ammonite.

Usage

#+begin_src amm :results org
sealed trait Maybe[+T]
final case object Empty extends Maybe[Nothing]
final case class Just[T](t: T) extends Maybe[T]
#+end_src

#+RESULTS:
#+BEGIN_SRC org
defined trait Maybe
defined object Empty
defined class Just
#+END_SRC

Demo

With this discussion, please replace the scala in begin_src block with amm ./demo.gif