Function: center-paragraph
center-paragraph is an interactive and byte-compiled function defined
in text-mode.el.gz.
Signature
(center-paragraph)
Documentation
Center each nonblank line in the paragraph at or after point.
See center-line for more info.
Probably introduced at or before Emacs version 23.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/text-mode.el.gz
(defun center-paragraph ()
"Center each nonblank line in the paragraph at or after point.
See `center-line' for more info."
(interactive)
(save-excursion
(forward-paragraph)
(or (bolp) (newline 1))
(let ((end (point)))
(backward-paragraph)
(center-region (point) end))))