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
- Host: GitHub
- URL: https://github.com/ericdallo/jet.el
- Owner: ericdallo
- License: gpl-3.0
- Created: 2023-01-25T15:16:26.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T12:28:57.000Z (over 1 year ago)
- Last Synced: 2024-12-27T19:23:58.000Z (about 1 year ago)
- Language: Emacs Lisp
- Size: 1.15 MB
- Stars: 57
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://melpa.org/#/jet)
[](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)
```