emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-clojure 3d72305 208/313: README: Add section describin


From: ELPA Syncer
Subject: [nongnu] elpa/inf-clojure 3d72305 208/313: README: Add section describing how to start and connect to a socket server.
Date: Wed, 11 Aug 2021 10:00:18 -0400 (EDT)

branch: elpa/inf-clojure
commit 3d723056cd1f4be121a87caf521f2673a177d6d9
Author: Austin Haas <austin@pettomato.com>
Commit: Austin Haas <austin@pettomato.com>

    README: Add section describing how to start and connect to a socket server.
---
 README.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/README.md b/README.md
index 23fa630..ff702d8 100644
--- a/README.md
+++ b/README.md
@@ -103,6 +103,19 @@ point. You can, however, change this behaviour by invoking 
such
 commands with a prefix argument. For instance: `C-u C-c C-v` will ask
 for the symbol you want to show the docstring for.
 
+#### Starting and connecting to a socket server
+
+For Leiningen, add this to your ~/.lein/profiles.clj or your project.clj:
+```:jvm-opts ["-Dclojure.server.repl={:port 5555 :accept 
clojure.core.server/repl}"]```
+
+Then run `lein repl` from within your project directory, and `C-c M-c RET 
localhost RET 5555` from within Emacs.
+
+For boot, export the environment variable BOOT_JVM_OPTIONS:
+```export BOOT_JVM_OPTIONS='-Dclojure.server.repl="{:port 5555 :accept 
clojure.core.server/repl}"'```
+
+You can also start a socket server via the [Clojure CLI 
tools](https://clojure.org/guides/getting_started).
+Configuration options are described 
[here](https://dev.clojure.org/display/design/Socket+Server+REPL).
+
 #### Caveats
 
 Note that if you decide _NOT_ to use the socket repl, it is highly recommended



reply via email to

[Prev in Thread] Current Thread [Next in Thread]