[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure b2224bc 211/313: Merge pull request #145 from
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure b2224bc 211/313: Merge pull request #145 from austinhaas/master |
Date: |
Wed, 11 Aug 2021 10:00:18 -0400 (EDT) |
branch: elpa/inf-clojure
commit b2224bc4b2b93a9e4287533c9933d63742b5ebd6
Merge: 9b77479 fcf30b5
Author: Andrea Richiardi <a.richiardi.work@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #145 from austinhaas/master
Explain how to create and connect to a socket REPL in README.
---
README.md | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/README.md b/README.md
index 23fa630..fa28360 100644
--- a/README.md
+++ b/README.md
@@ -103,6 +103,40 @@ 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 the following option 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 to start the
+REPL, and `C-c M-c RET localhost RET 5555` from within Emacs to
+connect, or add the following to your `.dir-locals.el`
+```
+((nil . ((inf-clojure-lein-cmd . ("localhost" . 5555)))))
+```
+or the following to your `.emacs`
+```
+(setf inf-clojure-lein-cmd '("localhost" . 5555))
+```
+
+For boot, export the environment variable BOOT_JVM_OPTIONS:
+```
+export BOOT_JVM_OPTIONS='-Dclojure.server.repl="{:port 5555 :accept
clojure.core.server/repl}"'
+```
+or add the following to your `.dir-locals.el`:
+```
+((nil . ((inf-clojure-boot-cmd . ("localhost" . 5555)))))
+```
+or the following to your `.emacs`
+```
+(setf inf-clojure-boot-cmd '("localhost" . 5555))
+```
+
+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
- [nongnu] elpa/inf-clojure 0bb2700 156/313: Introduce inf-clojure-log-activity, (continued)
- [nongnu] elpa/inf-clojure 0bb2700 156/313: Introduce inf-clojure-log-activity, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 86d0b60 158/313: Adopt find-ns for detecting the repl type, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b04f05d 174/313: Fix the default value for inf-clojure-arglists-form-planck (#112), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ca96cfc 180/313: Add README note about ClojureScript REPL support, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 715bd82 188/313: Add macroexpand forms for Lumo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ec99211 189/313: Support loading directory locals in our buffers, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 803a419 193/313: Add test harness (finally?), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 903dd73 196/313: Set explicitly inf-clojure-repl-type for REPL and source buffer, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure de59fce 206/313: Merge pull request #142 from austinhaas/master, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9deb198 202/313: Use comint-send-string, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b2224bc 211/313: Merge pull request #145 from austinhaas/master,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure cf53284 220/313: Fix for https://github.com/clojure-emacs/inf-clojure/issues/154 (#158), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1e93db8 237/313: Bump the development version, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c590c65 240/313: Remove projects from inf-clojure except to serve as project root, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8fb1929 254/313: Set REPL type from startup form, prompt, or defcustom at startup, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f298612 259/313: [Fix #173] Use clojure-mode project detection (#176), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 380528f 078/313: Bump the clojure-mode dependency, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 24463b4 105/313: [Fix #26] Make switching to the REPL optional on, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b357856 112/313: Rename defcustoms to `inf-clojure-*-form` where appropriate, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 64162aa 138/313: Fix a formatting issue in the README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9d2d143 144/313: Make sure tabs would never sneak in, ELPA Syncer, 2021/08/11