Fork me on GitHub
#cider
<
2024-01-11
>
mkvlr08:01:28

when working in cljc namespaces is there a way for cider to detect you’re in a reader conditional and send evals to the right repl?

vemv08:01:54

We recently introduced a defcustom allowing to choose a fixed option instead of sending it to both repls - may be handy

vemv08:01:43

But no, I don't think we have reader-conditional level detection. We have reader-conditional-parsing code in clj-refactor.el (including for partially written stuff) we could reuse it

👍 1
mkvlr08:01:44

I mean detecting by where you are inside the fiel

👍 1
mkvlr08:01:31

what’s the defcustom to control where it goes to called?

vemv08:01:23

https://docs.cider.mx/cider/cljs/up_and_running.html#working-with-cljc-files cider-clojurec-eval-destination, good to set in .dir-locals.el For the other approach, feel free to create an issue, probably it deserves some discussion for edge cases

mkvlr08:01:11

and that’s global or per-file?

mkvlr08:01:35

I’d often want to change this for the buffer I’m working on

vemv08:01:04

Global, however you can use setq-local 👌

🙏 1