File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -110,12 +110,29 @@ For Leiningen, add the following option to your ~/.lein/profiles.clj or your pro
110
110
:jvm-opts ["-Dclojure.server.repl={:port 5555 :accept clojure.core.server/repl}"]
111
111
```
112
112
113
- 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.
113
+ Then run ` lein repl ` from within your project directory to start the
114
+ REPL, and ` C-c M-c RET localhost RET 5555 ` from within Emacs to
115
+ connect, or add the following to your ` .dir-locals.el `
116
+ ```
117
+ ((nil . ((inf-clojure-lein-cmd . ("localhost" . 5555)))))
118
+ ```
119
+ or the following to your ` .emacs `
120
+ ```
121
+ (setf inf-clojure-lein-cmd '("localhost" . 5555))
122
+ ```
114
123
115
124
For boot, export the environment variable BOOT_JVM_OPTIONS:
116
125
```
117
126
export BOOT_JVM_OPTIONS='-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}"'
118
127
```
128
+ or add the following to your ` .dir-locals.el ` :
129
+ ```
130
+ ((nil . ((inf-clojure-boot-cmd . ("localhost" . 5555)))))
131
+ ```
132
+ or the following to your ` .emacs `
133
+ ```
134
+ (setf inf-clojure-boot-cmd '("localhost" . 5555))
135
+ ```
119
136
120
137
You can also start a socket server via the [ Clojure CLI tools] ( https://clojure.org/guides/getting_started ) .
121
138
Configuration options are described [ here] ( https://dev.clojure.org/display/design/Socket+Server+REPL ) .
You can’t perform that action at this time.
0 commit comments