branch: elpa/inf-clojure commit fcf30b5166dd4be6d6e7de96b5b2dce7c689d650 Author: Austin Haas <aus...@pettomato.com> Commit: Austin Haas <aus...@pettomato.com>
README: Add instructions for including socket config in .dir-locals.el or .emacs. --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 00c9984..fa28360 100644 --- a/README.md +++ b/README.md @@ -110,12 +110,29 @@ For Leiningen, add the following option to your ~/.lein/profiles.clj or your pro :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. +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).