Function: cider-format-defun-at-point

cider-format-defun-at-point is an autoloaded, interactive and byte-compiled function defined in cider-format.el.

Signature

(cider-format-defun-at-point)

Documentation

Format the code in the current defun.

Key Bindings

Aliases

cider-format-defun (obsolete since 2.1.0)

Source Code

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

;;;###autoload
(defun cider-format-defun-at-point ()
  "Format the code in the current defun."
  (interactive)
  (let ((defun-bounds (cider-defun-at-point 't)))
    (cider-format-region (car defun-bounds) (cadr defun-bounds))))