clay.el

January 24, 2025 · View on GitHub

License GPL 3

Emacs binding for the Clay Clojure tool for data visualization and literate programming

:star: Note that API function names have changed (2024-01-10), see below. :star:

Usage

Walkthrough

:movie_camera: Clay v2 pre-release with CIDER, 2023-12-17

Installing

The Clay package is in MELPA:

MELPA

After enabling MELPA installations in your Emacs setup, you may install it using: M-x package-refresh-contents and then M-x package-install.

API

The package offers the following functions, that you may wish to create keybindings for:

namefunction
clay-startStart clay if not started yet.
clay-make-ns-htmlSave clj buffer, render it as html, and show that in the browser view.
clay-make-ns-quarto-htmlSave clj buffer, render it as quarto, render that as html, and show that in the browser view.
clay-make-ns-quarto-revealjsSave clj buffer, render it as quarto, render that as a revealjs slideshow, and show that in the browser view.
clay-make-last-sexpRender the last Clojure form before the cursor (using the format specified by Clay defaults or user configuration).
clay-make-defun-at-pointRender the the top-level Clojure form at the cursor (using the format specified by Clay defaults or user configuration).

License

Clay.el is distributed under the GNU General Public License, version 3.

Copyright © 2025 Scicloj