Function: cider-jack-in-clj&cljs
cider-jack-in-clj&cljs is an autoloaded, interactive and byte-compiled
function defined in cider-jack-in.el.
Signature
(cider-jack-in-clj&cljs &optional PARAMS SOFT-CLJS-START)
Documentation
Start an nREPL server and connect with clj and cljs REPLs.
PARAMS is a plist optionally containing :project-dir, :jack-in-cmd and
:cljs-repl-type (e.g. shadow, node, figwheel, etc).
With the prefix argument, allow for editing of the jack in command; with a double prefix prompt for all these parameters.
When SOFT-CLJS-START is non-nil, start cljs REPL only when the ClojureScript dependencies are met.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-jack-in.el
;;;###autoload
(defun cider-jack-in-clj&cljs (&optional params soft-cljs-start)
"Start an nREPL server and connect with clj and cljs REPLs.
PARAMS is a plist optionally containing :project-dir, :jack-in-cmd and
:cljs-repl-type (e.g. `shadow', `node', `figwheel', etc).
With the prefix argument, allow for editing of the jack in command;
with a double prefix prompt for all these parameters.
When SOFT-CLJS-START is non-nil, start cljs REPL
only when the ClojureScript dependencies are met."
(interactive "P")
(cider--with-cljs-jack-in-deps
(let ((params (thread-first params
(cider--update-params)
(cider--update-cljs-type)
;; already asked, don't ask on sibling connect
(plist-put :do-prompt nil))))
(cider--start-nrepl-server
params
(lambda (server-buf)
(let ((clj-repl (cider-connect-sibling-clj params server-buf)))
(if soft-cljs-start
(when (cider--check-cljs (plist-get params :cljs-repl-type) 'no-error)
(cider-connect-sibling-cljs params clj-repl))
(cider-connect-sibling-cljs params clj-repl))))))))