Use text centring if visual-fill-column available

This commit is contained in:
TEC 2020-10-05 10:25:42 +08:00
parent 825f71cba1
commit abc6ad5977
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 5 additions and 1 deletions

View File

@ -288,7 +288,11 @@ Turning on Text mode runs the normal hook `lexic-mode-hook'."
text-mode-hook)))
(setq buffer-read-only t)
(setq-local outline-regexp "\u200B+")
(setq-local outline-heading-end-regexp "\u2008"))
(setq-local outline-heading-end-regexp "\u2008")
(when (require 'visual-fill-column nil t)
(setq-local visual-fill-column-center-text t)
(visual-fill-column-mode 1)
(setq-local display-line-numbers-type nil)))
(defun lexic-mode-reinit ()
"Re-initialize buffer.