Fork me on GitHub
#cursive
<
2018-04-09
>
kingmob14: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…

kingmob15:04:39

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

kingmob15: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?

kingmob20: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.

kingmob21:04:22

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

kingmob21: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