spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
2020-03-19T14:52:13.205200Z

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?

2020-03-19T16:52:48.207200Z

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-john 2020-03-19T18:24:54.207800Z

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-john 2020-03-19T18:25:45.208600Z

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

zane 2020-03-19T18:26:15.208900Z

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

2020-03-19T18:41:08.210500Z

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.

practicalli-john 2020-03-19T18:44:28.212400Z

@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.

zane 2020-03-19T19:02:18.212800Z

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

plins 2020-03-19T22:05:52.214Z

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-john 2020-03-20T10:51:44.217800Z

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