Is there any way to get the CIDER REPL to place the point on a separate line from the REPL prompt? I.e. this:
user>
_
instead of this
user> _I think thatād be quite nice. I donāt know of anything though. š
You could redefine this:
(defun cider-repl-prompt-default (namespace)
"Return a prompt string that mentions NAMESPACE."
(format "%s> " namespace))
(I.e. add \n to the end of the string)Havenāt had luck with this so far. There are some related vars that looked to let me plug a fn like this into, but I still donāt get newlines.
@mikerod Redefining cider-repl-prompt-default worked fine for me:
(defun cider-repl-prompt-default (namespace)
"Return a prompt string that mentions NAMESPACE."
(format "%s> \n" namespace))
(i.e. the same as the built-in one that I pasted above, but with "\n" added to the string).
Doesn't that do what you want?I tried it initially and I didnāt get a newline. I was confused why. I then found a more āofficialā var for this cider-repl-prompt-function where you should be able to bind a fn of choice (and it uses the default as default).
I had no luck with that so far either. I think Iām on latest cider released.
I havenāt done enough troubleshooting of this yet though.
Isn't this what you're trying to accomplish?
Yes
Oh. Iām going to check that out. Thanks.