Fork me on GitHub

I wonder how hard it would be to update cider docs to also include spacemacs keystrokes.


I donโ€™t think any cider authors are spacemacs users(?)


The docs in the Clojure layer for Spacemacs give you a good overview of the keybindings, however, its more like a cheetsheet. I would be happy to work on some pull requests to improve the Clojure layer docs if you think its helpful.


Your work is wonderful and I refer to it often!


One day it will be finished ๐Ÿ™‚


I can discuss getting some Spacemacs specific stuff added to the CIDER docs. Or maybe just a reference to Spacemacs specific documentation from


I was more thinking that while reading through cider docs, having those spacemacs cider commands right there would be so cool. Keeping it up to date would also be a good way to ensure that our clojure layer is not missing any cider goodness. But all this would take time and ongoing interest.


Just thinking out loud, I suppose the cider docs could have a toggle for emacs and spacemacs and the appropriate keystrokes would show.


I did think about having a toggle on the Practicalli Spacemacs book, between Evil an Holy modes. This did feel better than my first attempt at putting them both together. It felt very heavy going. Instead I just focused on the Evil style.


I will have a chat at some point with the CIDER team and see what they think. Or fee free to ask in the #cider channel. They are a friendly bunch in there, especially when you are willing to help make CIDER better.


Thanks @jr0cket, Iโ€™m going to wait a bit until I can commit to helping.


Just did a round of upgrades of spacemacs (to latest on develop as of a week or so ago) and packages. The biggest upgrade issue I've encountered is that when I jack-in or connect a repl, it now starts in user rather than the namespace marked as :main in the project.clj file. Anyone else encountered this? If so, have you found a solution?


@eggsyntax I think someone mentioned that their repl was only starting in user namespace in either the #cider or possibly #emacs channel

๐Ÿ™ 4

It seems you should use :init-ns to define the namespace and not rely on :main - assuming this is a Leiningen project


@eggsyntax maybe they just fixed the feature that used main incorrectly ๐Ÿ™‚


Yeah, that seems very plausible. Many thanks!


I just updated my develop branch and everything is working very smoothly. I would be interested to here if you have any issues, especially around Clojure. There are also some more Clojure mode keybindings now ๐Ÿ™‚


When you say "working very smoothly," do you mean you're seeing the old behavior again (starting the CIDER REPL in the :main ns if :init-ns isn't there)? I'm definitely not seeing that. Oddly, {:repl-options {:init-ns foo.core}} doesn't seem to change behavior either. My main suggestion so far re the keybindings -- it's nice to have the jack-in options organized, but I'd suggest keeping , s i bound to cider-jack-in-clj, as the most common case, while also having it bound to your new binding of , s j c.


Interesting, I assumed that , ' would be the most common way to cider-jack-in. Do you not use this keybinding?


I don't. Part of that is probably just habit, and part is that it's an awkward sequence in dvorak (left ring finger off home row, then left pinky off home row). That said, I had forgotten its existence when I made the suggestion. I retract the suggestion, if there is already a top-level shortcut and now a third-level shortcut, no need for a second level shortcut :-)


(if you're responding, I'd love to hear an answer to the question before the key findings suggestion, that would be useful info!)


I assume you are asking about setting the namespace. I don't usually do that, but it is nice to know how. I will test and see what works and let you know


I created and when I run with cider-jack-in then it sets the namespace to that defined in :main


This was with Leiningen version 2.8.3. I will check with the latest version to see if it still works.


It still works with Leiningen 2.9.1


I updated the packages recently and am on CIDER 0.22.0snapshot (package: 20190708.1036)


The cider-jack-in command is [nREPL] Starting server via /home/jr0cket/bin/lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.5.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.22.0-beta8\"\] -- repl :headless :host localhost...


If can also successfully add a new namespace and set that to be the default using ;repl-options {:init-ns }. I just pushed that to the above git repository


Oh, interesting. Thanks @jr0cket, that's really helpful!


Cool, I'll give it a shot!