Function: cider-connect-clj

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

Signature

(cider-connect-clj &optional PARAMS)

Documentation

Initialize a Clojure connection to an nREPL server.

PARAMS is a plist optionally containing :host, :port and :project-dir. If nil, use the default parameters in cider-connect-default-params.

With the prefix argument, prompt for all the parameters regardless of their supplied or default values.

Key Bindings

Aliases

cider-connect

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
;;;###autoload
(defun cider-connect-clj (&optional params)
  "Initialize a Clojure connection to an nREPL server.
PARAMS is a plist optionally containing :host, :port and :project-dir.
If nil, use the default parameters in `cider-connect-default-params'.

With the prefix argument, prompt for all the parameters regardless of
their supplied or default values."
  (interactive "P")
  (cider-nrepl-connect
   (thread-first (or params cider-connect-default-params)
                 (copy-sequence) ;; Note: the following steps mutate the list
                 (map-delete :cljs-repl-type)
                 (cider--update-project-dir)
                 (cider--update-host-port)
                 (cider--check-existing-session)
                 (plist-put :repl-init-function nil)
                 (plist-put :session-name nil)
                 (plist-put :repl-type 'clj))))