Fork me on GitHub
#emacs
<
2023-09-17
>
borkdude13:09:29

I could have sworn you could use #C9BT75KRC with a stdin/stdout REPL but the documentation only seems to hint at socket REPLs, is that right?

dpsutton13:09:17

inf-clojure will run a subprocess and just show the repl

1
dpsutton13:09:41

i believe it needs to start the process itself of course

borkdude14:09:10

I managed to get something working just with inferior-lisp

dpsutton14:09:13

i’ve wanted to make a “target buffer” mode. which uses clojure-mode and takes a target buffer that it sends forms over and knows how to send enter in that buffer. then you could just have vterm up and send a few forms (require, send forms, doc, in-ns, etc)

aisamu14:09:54

It can either start the process itself (set the command to (e.g.) clojure -Adev:etc) or connect to a socket repl (set the command to (localhost . 5555) IIRC)

dpsutton14:09:13

i made a temp dir, make deps.edn just {} and from the deps.edn file ran m-x inf-clojure. it asked me which form to use to startup and then dropped me in a repl buffer

borkdude14:09:43

Which form to use at startup : do you mean the command to start the REPL? My REPL is a custom lisp

dpsutton14:09:27

yeah. anything that will create a stdin/out repl process

dpsutton14:09:55

here are the default options

borkdude14:09:08

I only got a list of pre-built options

dpsutton14:09:11

but you can run whatever you want make repl, some bb task, etc

dpsutton14:09:19

you should be able to type in a custom one and it will accept it

dpsutton14:09:40

then it will ask for which “type” (cljs, clj, etc) for the docstring and require forms to use

dpsutton14:09:59

bb.repl/dir vs clojure.repl/dir etc

borkdude14:09:05

Ok will try as soon as I’m at the kbd again

👍 1