Skip to content

Commit 6b53c83

Browse files
committed
Add changelog and documentation
1 parent 9601d86 commit 6b53c83

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [#3784](https://github.com/clojure-emacs/cider/issues/3784): Inspector: make point less erratic when navigating between inspector screens.
1414
- [#3790](https://github.com/clojure-emacs/cider/issues/3790): Stacktrace: show messages and data for all exception causes by default.
1515
- [#3789](https://github.com/clojure-emacs/cider/issues/3789): Refactor and simplify exception handling.
16+
- [#3359](https://github.com/clojure-emacs/cider/pull/3359): Add customizable default connection params
1617

1718
## 1.17.1 (2025-02-25)
1819

doc/modules/ROOT/pages/basics/up_and_running.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,22 @@ reads for the host and port prompts when you invoke
358358
("host-b" "7888")))
359359
----
360360

361+
If you wish to bypass the prompts entirely, you can configure the variables
362+
`cider-connect-default-params` and `cider-connect-default-cljs-params`
363+
on a per-project basis using https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html[.dir-locals.el].
364+
365+
The following configuration allows you to type kbd:[M-x] `cider-connect-clj&cljs` kbd:[RET] and instantly connect to both JVM and shadow-cljs REPLs without answering any prompts – useful when the project always uses the same fixed endpoints for its nREPL servers.
366+
367+
[source,lisp]
368+
---
369+
((clojure-mode
370+
. ((cider-connect-default-params . (:host "localhost" :port 1234))
371+
(cider-connect-default-cljs-params . (:host "localhost" :port 5678))
372+
(cider-default-cljs-repl . shadow))))
373+
---
374+
375+
Note that the universal argument kbd:[C-u] can be used before a command to override these settings and force the prompts to be displayed.
376+
361377
== Working with Remote Hosts
362378

363379
While most of the time you'd be connecting to a locally running nREPL

0 commit comments

Comments
 (0)