Skip to content

Commit 1e33bc8

Browse files
committed
Add changelog and documentation
1 parent 7889b5f commit 1e33bc8

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## master (unreleased)
44

5+
### New features
6+
7+
- [#3359](https://github.com/clojure-emacs/cider/pull/3359): Add customizable default connection params
8+
59
## 1.18.0 (2025-04-30)
610

711
### New features

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

+16
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)