Function: cider-custom-cljs-repl-init-form
cider-custom-cljs-repl-init-form is a byte-compiled function defined
in cider-cljs.el.
Signature
(cider-custom-cljs-repl-init-form)
Documentation
The form used to start a custom ClojureScript REPL.
Defaults to the value of cider-custom-cljs-repl-init-form(var)/cider-custom-cljs-repl-init-form(fun).
If it's nil the function will prompt for a form.
The supplied string will be wrapped in a do form if needed.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-cljs.el
(defun cider-custom-cljs-repl-init-form ()
"The form used to start a custom ClojureScript REPL.
Defaults to the value of `cider-custom-cljs-repl-init-form'.
If it's nil the function will prompt for a form.
The supplied string will be wrapped in a do form if needed."
(or
cider-custom-cljs-repl-init-form
(let ((form (read-from-minibuffer "Please, provide a form to start a ClojureScript REPL: ")))
;; Only skip the wrapping when the form is already a `do' block; a bare
;; prefix check would also match calls like `(dorun ...)' or `(doseq ...)'.
(if (string-match-p "\\`(do[[:space:])]" form)
form
(format "(do %s)" form)))))