Function: cider-custom-cljs-repl-init-form

cider-custom-cljs-repl-init-form is a byte-compiled function defined in cider.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-20260414.1619/cider.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: ")))
     ;; TODO: We should probably make this more robust (e.g. by using a regexp or
     ;; parsing the form).
     (if (string-prefix-p "(do" form)
         form
       (format "(do %s)" form)))))