Does kondo, or joker, works if you add then to your classpath so you can lint using a command inside the REPL?
linter-joker
works automatically when you load a file or change a file.
It runs the joker
command-line tool to check your code.
I assume linter-kondo
works the same way (since clj-kondo
is a fast command line tool)
Correct (although kondo can run as a JVM dep as well)
Btw you can multiple linters if you want, I still have joker hooked up in Emacs.
But clj-kondo doesnโt run as a binary on Windows (it may work in WSL2?)
yep, linter-kondo just runs on every change if you want.
it's so fast that it basically runs live.
i'm using kondo with both vscode and atom.
@mauricio.szabo I didn't see your message yet. clj-kondo supports both modes: run as a binary or use as a Clojure library and invoke it however you want, using a script or from the REPL
currently there aren't any off the shelf clojure-mode / Emacs integrations for it that I know of that leverage the JVM option, but I don't see why that wouldn't work
Thanks @borkdude. I'm really with lots of ideas on how to integrate multiple tools in a same library, so this is great news for me ๐
I'm a pretty heavy cursive+parinfer user and playing around with chlorine. One of my most common editting tasks is selecting a sexp, and moving it around. I don't use paredit stuff (yank, barf, shove, vomit, whatever :)). I just use cursive's ctrl-w /ctrl-shift-w to expand/contract the selection by form and ctrl-x. I'm wondering if there is a chlorine equivalent to expand / contract selection by form.
No, this is outside Chlorine's responsibilities. The idea is just to evaluate code, and integrate some middlewares like autocomplete, refactoring (still to be done), goto var definition, etc
Ah. I saw that Atom has an expand/shrink selection by syntax node. I looked around for an Atom package that mapped explained lisp syntax to Atom but couldn't find one that supported the expand/shrink. Any guesses what it might be?
I use lisp-paredit to do it
Great. I'll try that
@mark340 FWIW, I have both lisp-paredit
and parinfer
installed in Atom -- plus a few extra paredit-style commands in my init.coffee
file (see my atom-chlorine-setup repo). Sometimes parinfer
interferes with lisp-paredit
's copy'n'paste tho'...
I was actually just applying your customizations. I'm going to play around with lisp-paredit later today.
Thanks
Feel free to DM me if you have any Qs about them!