spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
craftybones 2021-05-12T06:03:10.107700Z

If I want to use spacemacs, but plug directly into a Clojure CLI(not nrepl), what are my options?

practicalli-john 2021-05-12T08:10:04.107800Z

As I understand it, a REPL is an external process that requires a protocol to connect. This is the case when running a repl with either Leiningen or Clojure CLI tools (i.e. cider-jack-in). nrepl is by far the most common protocol and enables a rich set of features via the Cider package. Other options I am aware of are socket REPL and prepl. Socket REPL is part of the Clojure library, so included in any project that has org.clojure/clojure as a dependency. https://github.com/clojure-emacs/inf-clojure is an Emacs project that uses Socket REPL to connect to a running REPL, providing what they describe as essential features (a sub-set of features you would get with Cider & nrepl). I am assuming this would be used instead of the Clojure layer, so you would need to add as additional-packages or create/find a private Spacemacs layer for inf-clojure.

practicalli-john 2021-05-12T08:12:47.108100Z

https://github.com/practicalli/clojure-deps-edn#alternative-repls has examples of running a repl with different protocols, such as socket repl

practicalli-john 2021-05-12T08:14:45.108400Z

https://oli.me.uk/clojure-socket-prepl-cookbook/ may give some insight into using these alternative protocols for connecting to a repl.

craftybones 2021-05-12T09:55:53.108600Z

Thanks @jr0cket

practicalli-john 2021-05-12T10:10:07.108800Z

I would be interested to hear how you get on, as I have only ever used nREPL myself. Thank you.

practicalli-john 2021-05-12T11:58:46.110Z

Added a short page on using Magit to checkout a branch from a remote repository to the Magit section of Practicalli Spacemacs. Anything else that would be useful to add? https://practicalli.github.io/spacemacs/source-control/magit/remote-repositories/checkout-remote-branch.html

practicalli-john 2021-05-12T21:34:02.116600Z

@c.westrom so it seems magit-dispatch is like having all the commands available from the magit-status buffer without having the magit-status buffer. Is that about right??

West 2021-05-12T22:02:18.116700Z

Yes. It's also nice to have even while in magit status. That's how I found the other controls for staging and discarding changes.

practicalli-john 2021-05-12T22:55:28.118800Z

Interesting. I use the ? key binding in magit status buffer to see the magit commands. It seems to be the same as running magit-dispatch when also in the magit-buffer.