Fork me on GitHub
#spacemacs
<
2020-03-19
>
bmaddy14:03:13

On occasion I'd like to use include alias that's not specified in the .dir-locals file for a project that uses clojure's cli tools. Is the best way to do this to figure out the right version of nrepl, piggieback, etc., put all that stuff in my ~/.clojure/deps.edn file (and update it whenever things get updated in spacemacs), then use cider-connect-clj&cljs?

bmaddy16:03:48

Got it: SPC-u SPC-SPC cider-jack-in (or whatever your jack-in command is). Then, you'll have the option to edit the command it runs. Unfortunately, you can't append another -A on the end to add your alias, you'll need to go back and modify the one that's already there.

practicalli-johnny18:03:54

If you are using cider-jack-in rather than cider-connect then CIDER will manage the nrepl depenencies on startup. Its only for cider-connect you would need an alias.

practicalli-johnny18:03:45

clojure -A:you:can:use:multiple:aliases in the clojure command

bmaddy18:03:08

Yeah, adding nrepl dependencies is why I use cider-jack-in. I'd really like to be able to include my custom sc alias from ~/.clojure/deps.edn for vvvvalvalval/scope-capture. That's not in the .dir-locals.el file for our project, but I'd like to add it sometimes when doing debugging. After re-reading my question, I see how it wasn't very clear now.

zane18:03:15

Is it just me or was there recently a change that bound [ to evil-cp-previous-opening, thus clashing with evil-unimpaired?

practicalli-johnny18:03:28

@zane the [ on my develop branch is defined in the evil-cleverparens package, which has not changed since 2017. Looking at the spacemacs-evil and clojure layers, nothing in there sets a [ keybinding. Some other layer you use could be over-riding it. I havent used the [ keybinding much though.

zane19:03:18

Got it. That's helpful @jr0cket. Thanks!

plins22:03:52

on the development branch, if I do cider-jackin-clj it prompts me to choose between lein and clojure-cli is there a variable I can set a default option?

practicalli-johnny10:03:44

I've asked this in the #cider channel, as the config I have tried does not seem to be picked up by Cider.