Function: cider-pprint-eval-last-sexp-to-comment
cider-pprint-eval-last-sexp-to-comment is an interactive and
byte-compiled function defined in cider-eval.el.
Signature
(cider-pprint-eval-last-sexp-to-comment &optional INSERT-BEFORE)
Documentation
Evaluate the last sexp 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-last-sexp-to-comment (&optional insert-before)
"Evaluate the last sexp 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-last-sexp insert-before))