Fork me on GitHub
#cider
<
2020-10-02
>
kaxaw7583616:10:55

((clojure-mode
  (cider-clojure-cli-global-options . "-M:dev:nrepl:nrepl-opts")))

kaxaw7583616:10:21

That prepends only, how do I replace the entire jack-in cmd ?

dpsutton16:10:30

if you drop that and just use -A:dev you'll achieve the same thing. CIDER already throws its deps and main options in there correctly (which is what you are trying to accomplish with nrepl and nrepl-opts)

kaxaw7583616:10:51

it is an example, I want per project specific commands, different nrepl, cider-nrepl versions etc...

dpsutton16:10:12

alternatively, just start it from the command line like that and then cider-connect.

dpsutton16:10:10

is probably the easiest. it looks like if you call (cider-jack-in (list :edit-jack-in-command "whatever you want"))

dpsutton16:10:34

but would probably need a patch to have a wholesale dropin of the jack in command from dir-locals

dpsutton16:10:50

shouldn't be too hard. but at that point i don't see any real benefit over just cider-connect

dpsutton16:10:15

and personally would want the process outside of emacs. but i can see some people wanting it as an emacs subprocess i guess

kaxaw7583616:10:44

yep, using cider-connect currently, wanted to 'slim' more the project setup but no biggie, thanks

dpsutton16:10:48

yeah. especially if you have multiple versions there's no good way to select from multiple different fully formed startup commands. One thing to note is that if you jack-in with a prefix arg you can edit the entire jack in string to whatever you want. useful for "one off" type of jack ins, adding profiles willy-nilly, etc

jr0cket17:10:26

@kaxaw75836 The following has an example .dir-locals.el that will switch off all the auto-injection that cider-jack-in command does, leaving the clojure command and aliases to run http://practicalli.github.io/clojure/clojure-tools/data-browsers/rebl-data-visualization.html#run-rebl-for-nrepl-based-editors

zane21:10:37

Is *cider-test-report* supposed to show which test in a clojure.test/are form failed?