https://github.com/borkdude/parmezan
Parmezan fixes unbalanced or unexpected parens or other delimiters in Clojure files
https://github.com/borkdude/parmezan
clojure
Last synced: 2 days ago
JSON representation
Parmezan fixes unbalanced or unexpected parens or other delimiters in Clojure files
- Host: GitHub
- URL: https://github.com/borkdude/parmezan
- Owner: borkdude
- Created: 2025-11-17T14:56:14.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-01-01T12:37:38.000Z (28 days ago)
- Last Synced: 2026-01-22T15:45:47.370Z (7 days ago)
- Topics: clojure
- Language: Clojure
- Homepage:
- Size: 7.81 KB
- Stars: 20
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parmezan
Parmezan fixes unbalanced or unexpected parens or other delimiters in Clojure files.
## API
The main API function is `borkdude.parmezan/parmezan` which takes a string of Clojure and returns a fixed string of Clojure.
## Command line
Options:
```
--file The file you want to fix
--write Modify file in place
```
The CLI `-main` function is `borkdude.parmezan.cli/-main`.
The CLI exec function is `borkdude.parmezan.cli/exec`.
## Install
For babashka, you can install this tool with [bbin](https://github.com/babashka/bbin):
```
bbin install io.github.borkdude/parmezan
```
## Emacs integration
Once installed with bbin, you can hook this tool up with Emacs like this:
``` elisp
(defun parmezan ()
"Run parmezan on the current buffer."
(interactive)
(when (buffer-file-name)
(save-buffer)
(shell-command (format "parmezan --file %s --write"
(shell-quote-argument (buffer-file-name))))
(revert-buffer t t t)))
```
In a file with unbalanced delimiters, you then call `M-x parmezan` to fix it.
## License
MIT