Function: cider-connect-sibling-clj

cider-connect-sibling-clj is an autoloaded, interactive and byte-compiled function defined in cider.el.

Signature

(cider-connect-sibling-clj PARAMS &optional OTHER-REPL)

Documentation

Create a Clojure REPL with the same server as OTHER-REPL.

PARAMS is for consistency with other connection commands and is currently ignored. OTHER-REPL defaults to cider-current-repl and in programs can also be a server buffer, in which case a new session with a REPL for that server is created.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
;;;###autoload
(defun cider-connect-sibling-clj (params &optional other-repl)
  "Create a Clojure REPL with the same server as OTHER-REPL.
PARAMS is for consistency with other connection commands and is currently
ignored.  OTHER-REPL defaults to `cider-current-repl' and in programs can
also be a server buffer, in which case a new session with a REPL for that
server is created."
  (interactive "P")
  (cider-nrepl-connect
   (let* ((other-repl (or other-repl (cider-current-repl 'any 'ensure)))
          (other-params (cider--gather-connect-params nil other-repl))
          (ses-name (unless (nrepl-server-p other-repl)
                      (sesman-session-name-for-object 'CIDER other-repl))))
     (thread-first params
                   (cider--update-do-prompt)
                   (append other-params)
                   (plist-put :repl-init-function nil)
                   (plist-put :repl-type 'clj)
                   (plist-put :session-name ses-name)))))