cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
2020-10-10T10:07:20.154400Z

Thanks for the info, I’ll add a issue to cider and, when i get a bit of time, I’ll try to PR.

teodorlu 2020-10-10T12:25:12.156800Z

Hi! I'm dabbling a bit in Clojurescript again, and I must say that my experience with CIDER and Clojurescript is way better now than it was two years ago! I'm really liking how easy it is to jack-in and get live-reloading and a browser-connected REPL 💯

teodorlu 2020-10-10T12:27:41.158400Z

Quick question. Is there a good way to provide arguments for cider-jack-in-cljs in a project? I'm selecting shadow-cljs, shadow, :app and "No, I do not want to open a browser" each time I'm starting my project. Could I provide this with .dir-locals.el ? Or is there another preferred way?

zilti 2020-10-10T12:29:13.159300Z

You can do it with .dir-locals.el, yes! Here's the one I am using in my project:

((nil . ((cider-clojure-cli-global-options . "-A:dev")
         (cider-default-cljs-repl . shadow-select)
         (cider-shadow-default-options . ":main")))
 (cider-mode (eval add-hook 'after-save-hook 'cider-eval-buffer nil t)))

🙏 1
teodorlu 2020-10-10T12:30:17.159800Z

Great, thanks!

teodorlu 2020-10-10T12:30:46.160300Z

May I ask what the last line does? Are you auto-evaluating whole buffers on file changes?

zilti 2020-10-10T12:31:49.160900Z

Yes, but that line is actually broken, but I haven't looked into fixing it yet

teodorlu 2020-10-10T12:32:06.161200Z

OK. Thanks for the help :thumbsup:

👍 1