You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/modules/ROOT/pages/additional_packages.adoc
+13-10Lines changed: 13 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -133,13 +133,13 @@ enable `paredit` in the REPL buffer as well:
133
133
(add-hook 'cider-repl-mode-hook #'paredit-mode)
134
134
----
135
135
136
-
==== Unsetting Paredit binding of RET key
136
+
==== Unsetting the Paredit binding of the RET key
137
137
138
138
In recent versions of Paredit (25+), `RET` is bound to `paredit-RET`. This can cause unexpected
139
-
behaviour in the repl when `paredit-mode` is enabled, e.g. it appears to hang after hitting
139
+
behavior in the REPL when `paredit-mode` is enabled, e.g. it appears to hang after hitting
140
140
`RET` instead of evaluating the last form.
141
141
142
-
You can disable this Paredit behaviour by adding the following to your `init.el`:
142
+
You can disable this Paredit behavior by adding the following to your `init.el`:
143
143
144
144
[source,lisp]
145
145
----
@@ -148,20 +148,24 @@ You can disable this Paredit behaviour by adding the following to your `init.el`
148
148
149
149
=== paren-face
150
150
151
-
https://github.com/tarsius/paren-face[paren-face] defines a face named `parenthesis` used just for parentheses. The originally intended purpose of this face is to make parentheses less visible in Lisp code by dimming them.
151
+
https://github.com/tarsius/paren-face[paren-face] defines a face named
152
+
`parenthesis` used just for parentheses. The originally intended purpose of this
153
+
face is to make parentheses less visible in Lisp code by dimming them.
152
154
153
155
In the author's words:
154
156
155
-
> We lispers probably don’t need to be constantly made aware of the existence of the parentheses. Dimming them might be even more useful for people new to lisp who have not yet learned to subconsciously blend out the parentheses.
157
+
> We lispers probably don’t need to be constantly made aware of the existence of
158
+
> the parentheses. Dimming them might be even more useful for people new to lisp
159
+
> who have not yet learned to subconsciously blend out the parentheses.
156
160
157
161
TIP: the following customization expands paren-face to dim even more delimiters from the Clojure language: `(setq paren-face-regexp "\\([( ]\\.-\\|[( ]\\.+\\|[][(){}#/]\\)")`.
158
162
159
163
=== Smartparens
160
164
161
-
https://github.com/Fuco1/smartparens[smartparens] is an excellent alternative
162
-
to paredit. Many Clojure hackers have adopted it recently and you might want
163
-
to give it a try as well. To enable `smartparens` in the REPL buffer use the
164
-
following code:
165
+
https://github.com/Fuco1/smartparens[smartparens] is an excellent alternative to
166
+
paredit. Many Clojure hackers have adopted it recently and you might want to
167
+
give it a try as well. To enable `smartparens` in the REPL buffer use the
168
+
following code:
165
169
166
170
[source,lisp]
167
171
----
@@ -214,4 +218,3 @@ forms directly in the REPL.
214
218
215
219
It's basically a simple alternative of CIDER, which provides a subset of CIDER's
Copy file name to clipboardExpand all lines: doc/modules/ROOT/pages/usage/managing_connections.adoc
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -195,15 +195,22 @@ names with `nrepl-repl-buffer-name-template`. See also
195
195
196
196
== Reusing dead REPLs
197
197
198
-
Under normal circumstances, CIDER automatically kills the REPL buffers and cleans up after itself when ending a session.
199
-
However, when a session is terminated unexpectedly, e.g. when it crashes or is disconnected from an external server process, the REPL buffer is left without an active connection and outputs a log:
198
+
Under normal circumstances, CIDER automatically kills the REPL buffers and
199
+
cleans up after itself when ending a session. However, when a session is
200
+
terminated unexpectedly, e.g. when it crashes or is disconnected from an
201
+
external server process, the REPL buffer is left without an active connection
202
+
and outputs a log:
200
203
201
204
[source]
202
205
----
203
206
*** Closed on < date/time > ***
204
207
----
205
208
206
-
Upon starting a new connection, CIDER can detect these "dead REPLs" and offer to reuse the buffer for the new connection.
207
-
By default, it prompts for confirmation whenever a dead REPL buffer is available for reuse, but you can customize this behaviour via the variable `cider-reuse-dead-repls`.
208
-
Setting it to `auto` reuses a dead REPL buffer automatically, and only displays a prompt when there are multiple options to choose from.
209
-
To suppress the prompt entirely, set it to `nil` to always start a new REPL buffer, or `any` to reuse the most relevant dead REPL.
209
+
Upon starting a new connection, CIDER can detect these "dead REPLs" and offer to
210
+
reuse the buffer for the new connection. By default, it prompts for
211
+
confirmation whenever a dead REPL buffer is available for reuse, but you can
212
+
customize this behavior via the variable `cider-reuse-dead-repls`. Setting it
213
+
to `auto` reuses a dead REPL buffer automatically, and only displays a prompt
214
+
when there are multiple options to choose from. To suppress the prompt
215
+
entirely, set it to `nil` to always start a new REPL buffer, or `any` to reuse
0 commit comments