GithubHelp home page GithubHelp logo

ag91 / ob-ammonite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zwild/ob-ammonite

0.0 2.0 0.0 1.67 MB

org-babel for scala evaluation in Ammonite

License: GNU General Public License v3.0

Emacs Lisp 100.00%

ob-ammonite's Introduction

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

ob-ammonite's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.