cider

Johan Parin 2025-01-26T09:12:38.302169Z

what would be the most idiomatic way to automatically run some Clojure code after jack-in? In my case I want to do something like:

(set! *print-length* 50)

a13 2025-01-26T12:13:49.410229Z

There's cider-connected-hook , so you can add any elisp function there, for example running cider-interactive-eval with the form you mentioned. Not sure if it's the simplest way, though.

dpsutton 2025-01-26T15:12:59.413269Z

https://docs.cider.mx/cider/usage/pretty_printing.html#print-options There’s also ways to set the print options with elisp

Johan Parin 2025-01-26T17:10:29.515439Z

Thanks a lot! Both approaches work.