/ob-bb

Emacs Org babel support for babashka.

Primary LanguageEmacs Lisp

ob-babashka

Modified from this gist which in turns modified from https://github.com/emacsmirror/ob-clojurescript/blob/master/ob-clojurescript.el

Installation

Just for personal use, so currently not published to Melpha. Install with use-package with straight.el:

(use-package ob-bb
  :straight (:type git :host github :repo "kimim/ob-bb"))

(use-package org
  :straight (:type built-in)
  :config
  (org-babel-do-load-languages
   'org-babel-load-languages
   '(
      ;; other languages
      ;; ...
      (bb . t))))

Install manually:

git clone https://github.com/kimim/ob-bb
(use-package ob-bb
  :load-path "/path/to/ob-bb")

(use-package org
  :config
  (org-babel-do-load-languages
   'org-babel-load-languages
   '(
      ;; other languages
      ;; ...
      (bb . t))))

Usage

#+begin_src bb
  (def n 40)
  (+ n 2)
#+end_src