Function: cider-register-cljs-repl-type
cider-register-cljs-repl-type is a byte-compiled function defined in
cider.el.
Signature
(cider-register-cljs-repl-type TYPE &optional INIT-FORM REQUIREMENTS-FN)
Documentation
Register a new ClojureScript REPL type.
Types are defined by the following:
- TYPE - symbol identifier that will be used to refer to the REPL type
- INIT-FORM - (optional) string or function (symbol) producing string
- REQUIREMENTS-FN - function to check whether the REPL can be started.
This param is optional.
All this function does is modifying cider-cljs-repl-types.
It's intended to be used in your Emacs config.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
(defun cider-register-cljs-repl-type (type &optional init-form requirements-fn)
"Register a new ClojureScript REPL type.
Types are defined by the following:
- TYPE - symbol identifier that will be used to refer to the REPL type
- INIT-FORM - (optional) string or function (symbol) producing string
- REQUIREMENTS-FN - function to check whether the REPL can be started.
This param is optional.
All this function does is modifying `cider-cljs-repl-types'.
It's intended to be used in your Emacs config."
(unless (symbolp type)
(user-error "The REPL type must be a symbol"))
(unless (or (null init-form) (stringp init-form) (symbolp init-form))
(user-error "The init form must be a string or a symbol referring to a function or nil"))
(unless (or (null requirements-fn) (symbolp requirements-fn))
(user-error "The requirements-fn must be a symbol referring to a function"))
(add-to-list 'cider-cljs-repl-types (list type init-form requirements-fn)))