2023-01-28
Update 2023-01-29: I’ve since learned that clojure-lsp also includes a GraalVM-built cljfmt
.
<50ms
) to use as an editor filter, invoked on savecljfmt
are no longer maintainedstdio
interface as expected by editor tools like format-allcljfmt
and its GraalVM native-image packaging don’t have #4.
So, I made a thing.
To use cljfmt-graalvm, you’ll need:
GRAALVM_HOME
env var setscript/comile
target/cljfmt
to someplace on your pathIf you are using doom emacs, enable format-all
in ~/.doom.d/init.el
…
(doom! :input
;; ...
(format +onsave) ; automated prettiness
;;...
)
… and add this to your ~/.doom.d/config.el
.
(set-formatter! 'cljfmt "cljfmt stdio")
As of 2023-01-28, Doom emacs has its format module pinned to format-all
0.5.0.
If you are using a later version of format-all
, use zprint or set zprint
.
(set-formatter! 'zprint "cljfmt stdio")
Related tags:
email comments to paul@bauer.codes