Function: cider-pprint-eval-defun-to-comment

cider-pprint-eval-defun-to-comment is an interactive and byte-compiled function defined in cider-eval.el.

Signature

(cider-pprint-eval-defun-to-comment &optional INSERT-BEFORE)

Documentation

Evaluate the "top-level" form and insert result as comment.

The formatting of the comment is controlled via three options:
    cider-comment-prefix ";; => "
    cider-comment-continued-prefix ";; "
    cider-comment-postfix ""

so that with customization you can optionally wrap the output in the reader macro "#_( .. )", or "(comment ... )", or any other desired formatting.

If INSERT-BEFORE is non-nil, insert before the form, otherwise afterwards.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defun cider-pprint-eval-defun-to-comment (&optional insert-before)
  "Evaluate the \"top-level\" form and insert result as comment.

The formatting of the comment is controlled via three options:
    `cider-comment-prefix'           \";; => \"
    `cider-comment-continued-prefix' \";;    \"
    `cider-comment-postfix'          \"\"

so that with customization you can optionally wrap the output
in the reader macro \"#_( .. )\", or \"(comment ... )\", or any
other desired formatting.

If INSERT-BEFORE is non-nil, insert before the form, otherwise afterwards."
  (interactive "P")
  (cider-pprint-form-to-comment 'cider-defun-at-point insert-before))