Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

zwild/ob-ammonite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Config

If you edit you prompt in .ammonite/predef.sc with

repl.prompt() = "scala> "

You should have this in your emacs config file.

(setq ob-ammonite-prompt-str "scala>")

Demo

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

About

org-babel for scala evaluation in Ammonite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published