Function: cider-connect-clj&cljs
cider-connect-clj&cljs is an autoloaded, interactive and byte-compiled
function defined in cider.el.
Signature
(cider-connect-clj&cljs PARAMS &optional SOFT-CLJS-START)
Documentation
Initialize a Clojure and ClojureScript connection to an nREPL server.
PARAMS is a plist optionally containing :host, :port, :project-dir and
:cljs-repl-type (e.g. shadow, node, figwheel, etc).
If nil, use the default parameters in cider-connect-default-params and
cider-connect-default-cljs-params.
When SOFT-CLJS-START is non-nil, don't start if ClojureScript requirements are not met.
With the prefix argument, prompt for all the parameters regardless of their supplied or default values.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
;;;###autoload
(defun cider-connect-clj&cljs (params &optional soft-cljs-start)
"Initialize a Clojure and ClojureScript connection to an nREPL server.
PARAMS is a plist optionally containing :host, :port, :project-dir and
:cljs-repl-type (e.g. `shadow', `node', `figwheel', etc).
If nil, use the default parameters in `cider-connect-default-params' and
`cider-connect-default-cljs-params'.
When SOFT-CLJS-START is non-nil, don't start if ClojureScript requirements are
not met.
With the prefix argument, prompt for all the parameters regardless of
their supplied or default values."
(interactive "P")
(let* ((clj-repl (cider-connect-clj params))
(cljs-params
(thread-first (or params cider-connect-default-cljs-params)
(copy-sequence)
(cider--update-cljs-type)
;; already asked, don't ask on sibling connect
(plist-put :do-prompt nil))))
(when (if soft-cljs-start
(cider--check-cljs (plist-get cljs-params :cljs-repl-type) 'no-error)
t)
(cider-connect-sibling-cljs cljs-params clj-repl))))