Function: cider--format-reindent

cider--format-reindent is a byte-compiled function defined in cider-format.el.

Signature

(cider--format-reindent FORMATTED START)

Documentation

Reindent FORMATTED to align with buffer position START.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-format.el
;; Format

(defun cider--format-reindent (formatted start)
  "Reindent FORMATTED to align with buffer position START."
  (let* ((start-column (save-excursion (goto-char start) (current-column)))
         (indent-line (concat "\n" (make-string start-column ? ))))
    (replace-regexp-in-string "\n" indent-line formatted)))