An open API service indexing awesome lists of open source software.

https://github.com/ericdallo/jet.el

Emacs integration for the jet Clojure tool
https://github.com/ericdallo/jet.el

Last synced: 2 months ago
JSON representation

Emacs integration for the jet Clojure tool

Awesome Lists containing this project

README

          

[![MELPA](https://melpa.org/packages/jet-badge.svg)](https://melpa.org/#/jet)
[![MELPA stable](https://stable.melpa.org/packages/jet-badge.svg)](https://stable.melpa.org/#/jet)

# jet.el

_Run [jet](https://github.com/borkdude/jet) Clojure tool from Emacs using a **smooth interface**_

## Installation

You can install from MELPA with package.el:

```
M-x package-install jet
```

## Usage

The main command is `M-x jet` which presents a magit-like interface where you can customize the args and choose lots of options like:

- Run jet and print to messages buffer (`jet-print`)
- Run jet and paste to current cursor (`jet-paste-cursor`)
- Run jet and paste to another buffer (`jet-paste-buffer`)
- Run jet and copy to clipboard (`jet-to-clipboard`)

Check the gif for an example.

Besides the main command it's possible to run each action directly as command, like `jet-paste-cursor` which will call jet directly passing the the region and checking the variable `jet-default-args`, useful for creating bindings for most used commands.

## Keybinding

It's possible to keybind a specific function passing pre-defined args, example:

```elisp
(defun jet-json-to-clipboard ()
(interactive)
(jet-to-clipboard (jet--thing-at-point) '("--from=json" "--to=edn")))

(global-set-key (kbd "C-c j j e") 'copy-json-as-edn)
```