Fork me on GitHub
#cursive
<
2018-04-09
>
Matthew Davidson (kingmob)14:04:44

OK, how do I set the REPL prompt? I usually want it to display the ns, but Cursive is ignoring my lein :repl-options…

Matthew Davidson (kingmob)15:04:39

Ahh, it looks like the ns is at the top of the REPL window, nm

Matthew Davidson (kingmob)15:04:39

Hmm, it also ignores REPL :welcome message. Would be nice if it didn’t.

cfleming20:04:35

@kingmob What’s the :welcome message?

Matthew Davidson (kingmob)20:04:02

Not sure if it’s lein-specific , but there’s a :repl-options key that can set things like a :welcome message, a :prompt, the initial namespace via :init-ns, etc.

Matthew Davidson (kingmob)21:04:22

Not crucial, just nice to have. I use :welcome to remind me what fns to run to kick stuff off 🙂

Matthew Davidson (kingmob)21:04:27

BTW @cfleming, is there a refactoring for cleaning up ns forms? E.g., convert :use to :require, alphabetize requires, etc?

conan11:04:40

I've always wanted this and just yesterday I raised a feature request: https://github.com/cursive-ide/cursive/issues/1975