Improve filling with footnote-mode

* lisp/mail/footnote.el (footnote-mode): Add regexp for footnotes
to sentence-end-base to improve filling.
This commit is contained in:
Stefan Kangas 2025-02-09 15:34:41 +01:00
parent 35fa712690
commit 64905eba27

View file

@ -894,6 +894,10 @@ play around with the following keys:
(make-local-variable 'footnote-start-tag)
(make-local-variable 'footnote-end-tag)
(make-local-variable 'adaptive-fill-function)
(setq-local sentence-end-base
(rx (or (regexp sentence-end-base)
(seq (regexp sentence-end-base)
"[" (+ digit) "]"))))
;; Filladapt is a GNU ELPA package.
(when (boundp 'filladapt-token-table)