Fork me on GitHub
#cider
<
2021-07-30
>
markgdawson12:07:06

Does anyone know how/where cider sets the little "spinner" that is in the repl modeline? I'd like to notify tooling outside of emacs when the repl is busy... But I can't seem to find the appropriate elisp hooks/functions.

markgdawson12:07:07

For some context, I use doom-modeline and I get REPL[clj] showing in the modeline, but when the repl is blocked on a task it changes to REPL[===]. I can't find the piece of code that does that. I want to hook something similar up to tell the polybar (an OS-level status bar) about the busy/not-busy status of the repl so I can always see it even from another buffer...

markgdawson12:07:55

i.e. I'm looking to run some code when the repl starts and stops an eval (to set a flag in a process outside of emacs).

bozhidar12:08:15

The spinner is an external package that we simply hook into the evaluation.

markgdawson07:08:17

A reply directly from the expert! 🙂 Thanks @U051BLM8F. That's exactly what I was looking for. 🙂

🙂 3
Steiner15:07:24

hey, I haven't use clojure for a long time, why I can't print variable which has evaluated in repl ??

dpsutton15:07:18

you are in the namespace core. solution-1 is a var that is defined in the namespace problem-1. There is no var project-euler.core/solution-1 and the error message is saying exactly that

Steiner15:07:21

oh, shit. thank you for your help 🙂

👍 2