This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-12
Channels
- # aleph (6)
- # announcements (11)
- # babashka (24)
- # beginners (127)
- # calva (33)
- # chlorine-clover (5)
- # cider (7)
- # clara (9)
- # cljs-dev (54)
- # cljsrn (5)
- # clojure (61)
- # clojure-australia (8)
- # clojure-bay-area (11)
- # clojure-europe (36)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-spec (6)
- # clojure-taiwan (1)
- # clojure-uk (8)
- # clojurescript (94)
- # code-reviews (2)
- # community-development (6)
- # conjure (26)
- # core-typed (1)
- # cursive (3)
- # datahike (4)
- # datomic (14)
- # events (1)
- # graphql (1)
- # honeysql (49)
- # introduce-yourself (5)
- # jobs-discuss (15)
- # kaocha (6)
- # lsp (8)
- # malli (1)
- # meander (5)
- # nrepl (1)
- # off-topic (21)
- # other-languages (1)
- # pathom (13)
- # podcasts-discuss (1)
- # polylith (1)
- # reitit (16)
- # shadow-cljs (50)
- # spacemacs (11)
- # sql (11)
- # tools-deps (21)
- # unrepl (1)
- # vim (9)
If I want to use spacemacs, but plug directly into a Clojure CLI(not nrepl), what are my options?
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.
https://github.com/practicalli/clojure-deps-edn#alternative-repls has examples of running a repl with different protocols, such as socket repl
https://oli.me.uk/clojure-socket-prepl-cookbook/ may give some insight into using these alternative protocols for connecting to a repl.
I would be interested to hear how you get on, as I have only ever used nREPL myself. Thank you.
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
Gotta add `SPC g m` or `C-c C-c` for magit dispatch. It shows all the useful commands, including push pull commit etc. Took me so long to find that menu. Also C-g
to exit that menu (not sure if it has a spacemacs-like binding).
Gotta add `SPC g m` or `C-c C-c` for magit dispatch. It shows all the useful commands, including push pull commit etc. Took me so long to find that menu. Also C-g
to exit that menu (not sure if it has a spacemacs-like binding).
@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??
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.
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.