practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
110 stars 33 forks source link

advice on handlng multilpe repls #228

Open drewverlee opened 4 years ago

drewverlee commented 4 years ago

One advanced issue you seem to run into on any clojure system is that you have to manage multiple applications backed by repls at once. The easiest example is a client server. Sometimes you might jut want to start one or the other, but often you want to start both at the same time and have an nrepl connection to both.

Currently i'm either running my project manager (e.g clj) at the command line or triggering it via clj-jack-in. But it would be cool to explore ways to setup multiple repl starting functions that were integrated into emacs (something has to start them).

A friend open sourced some code that aims to do that: https://github.com/dpsutton/tangled/blob/master/init.org#connect-to-running-services

We can look into making a guide about how generalize this principle.