Function: cider-eval-dwim

cider-eval-dwim is an interactive and byte-compiled function defined in cider-eval.el.

Signature

(cider-eval-dwim &optional DEBUG-IT)

Documentation

If no region is active, call cider-eval-defun with DEBUG-IT.

If a region is active, run cider-eval-region. Inside a comment form the enclosed form is evaluated - a property of cider-defun-at-point, shared by the whole defun-operating family.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eval.el
(defun cider-eval-dwim (&optional debug-it)
  "If no region is active, call `cider-eval-defun' with DEBUG-IT.
If a region is active, run `cider-eval-region'.
Inside a `comment' form the enclosed form is evaluated - a property of
`cider-defun-at-point', shared by the whole defun-operating family."
  (interactive "P")
  (if (use-region-p)
      (cider-eval-region (region-beginning) (region-end))
    (cider-eval-defun debug-it)))