branch: elpa/inf-clojure commit 7bf6f3d4a119e91beb39b091a61366cea1508cb0 Author: Austin Haas <aus...@pettomato.com> Commit: Austin Haas <aus...@pettomato.com>
README: Improve formatting. --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ff702d8..00c9984 100644 --- a/README.md +++ b/README.md @@ -105,13 +105,17 @@ 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}"]``` +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, and `C-c M-c RET localhost RET 5555` from within Emacs. +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. For boot, export the environment variable BOOT_JVM_OPTIONS: -```export BOOT_JVM_OPTIONS='-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}"'``` +``` +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).