diff --git a/center-content.el b/center-content.el index 49df854..4085f3d 100644 --- a/center-content.el +++ b/center-content.el @@ -127,6 +127,13 @@ ;; Restore the original mode-line-format (setq mode-line-format center-content--original-mode-line-format)) +(defun center-content-update () + "Updates the centering if `center-content-mode' is enabled." + (interactive) + (when (bound-and-true-p center-content-mode) + (center-content--disable) + (center-content--enable))) + ;;;###autoload (define-minor-mode center-content-mode "Toggle horizontal and vertical centering of buffer content.