[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 64905eba270: Improve filling with footnote-mode
From: |
Stefan Kangas |
Subject: |
master 64905eba270: Improve filling with footnote-mode |
Date: |
Sun, 9 Feb 2025 09:36:54 -0500 (EST) |
branch: master
commit 64905eba2707f89c3befe99b36d14e24eeb9f8c0
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Improve filling with footnote-mode
* lisp/mail/footnote.el (footnote-mode): Add regexp for footnotes
to sentence-end-base to improve filling.
---
lisp/mail/footnote.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el
index c4d10b74856..1e6265c79bf 100644
--- a/lisp/mail/footnote.el
+++ b/lisp/mail/footnote.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 64905eba270: Improve filling with footnote-mode,
Stefan Kangas <=