Skip to content

DogLooksGood/zprint.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zprint.el

zprint is a library and command line tool providing a variety of pretty printing capabilities for both Clojure code and Clojure/EDN structures. zprint.el use zprint binary to reformat Clojure code buffer very efficiently.

Why another implementation

There is an available implementation called zprint-mode.el . Differences in this implementation:

  • Always reformat the whole buffer, doesn’t support region-based reformat.
  • Don’t create temp file in procedure.
  • No binary download management, doesn’t limit to a specified version.
  • No Python needed.
  • Simpler implementation.

Usage

manually format via shortcut

(define-key clojure-mode-map (kbd "C-c p") 'zprint)

automatically format before save buffer

(add-hook 'clojure-mode-hook 'zprint-mode)

Releases

No releases published

Packages