Function: evil-align-center

evil-align-center is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-align-center BEG END &optional TYPE WIDTH)

Documentation

Center lines in the region between WIDTH columns.

The default for width is the value of fill-column.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-operator evil-align-center (beg end _type &optional width)
  "Center lines in the region between WIDTH columns.
The default for width is the value of `fill-column'."
  :motion evil-line
  :type line
  (interactive "<R><a>")
  (evil-justify-lines beg end 'center (if width
                                          (string-to-number width)
                                        fill-column)))