Function: cider-ns-reload-all

cider-ns-reload-all is an autoloaded, interactive and byte-compiled function defined in cider-ns.el.

Signature

(cider-ns-reload-all &optional PROMPT)

Documentation

Send a (require 'ns :reload-all) to the REPL.

With an argument PROMPT, it prompts for a namespace name. This is the Clojure out of the box reloading experience and does not rely on org.clojure/tools.namespace. See Commentary of this file for a longer list of differences. From the Clojure doc: ":reload-all implies :reload and also forces loading of all libs that the identified libs directly or indirectly load via require".

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-ns.el
;;;###autoload
(defun cider-ns-reload-all (&optional prompt)
  "Send a (require \\='ns :reload-all) to the REPL.

With an argument PROMPT, it prompts for a namespace name.  This is the
Clojure out of the box reloading experience and does not rely on
org.clojure/tools.namespace.  See Commentary of this file for a longer list
of differences.  From the Clojure doc: \":reload-all implies :reload and
also forces loading of all libs that the identified libs directly or
indirectly load via require\"."
  (interactive "P")
  (when-let ((ns (if prompt
                     (string-remove-prefix "'" (read-from-minibuffer "Namespace: " (cider-get-ns-name)))
                   (cider-get-ns-name))))
    (cider-interactive-eval (format "(require '%s :reload-all)" ns))))