Function: cider-format-edn-region

cider-format-edn-region is an autoloaded, interactive and byte-compiled function defined in cider-format.el.

Signature

(cider-format-edn-region START END)

Documentation

Format the EDN data in the current region.

START and END represent the region's boundaries.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-format.el
;;;###autoload
(defun cider-format-edn-region (start end)
  "Format the EDN data in the current region.
START and END represent the region's boundaries."
  (interactive "r")
  (cider-ensure-connected)
  (let* ((start-column (save-excursion (goto-char start) (current-column)))
         (right-margin (- fill-column start-column)))
    (cider--format-region start end
                          (lambda (edn)
                            (cider-sync-request:format-edn edn right-margin)))))