Variable: footnote-mode
footnote-mode is a buffer-local variable defined in footnote.el.gz.
Documentation
Non-nil if Footnote mode is enabled.
Use the command footnote-mode(var)/footnote-mode(fun) to change this variable.
Probably introduced at or before Emacs version 21.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/footnote.el.gz
;;;###autoload
(define-minor-mode footnote-mode
"Toggle Footnote mode.
Footnote mode is a buffer-local minor mode. If enabled, it
provides footnote support for `message-mode'. To get started,
play around with the following keys:
\\{footnote-minor-mode-map}"
:lighter footnote-mode-line-string
:keymap footnote-minor-mode-map
(footnote--local-advice footnote-mode adaptive-fill-function
footnote--adaptive-fill-function)
(footnote--local-advice footnote-mode fill-paragraph-function
footnote--fill-paragraph)
(when footnote-mode
(make-local-variable 'footnote-style)
(make-local-variable 'footnote-body-tag-spacing)
(make-local-variable 'footnote-spaced-footnotes)
(make-local-variable 'footnote-section-tag)
(make-local-variable 'footnote-section-tag-regexp)
(make-local-variable 'footnote-start-tag)
(make-local-variable 'footnote-end-tag)
(make-local-variable 'adaptive-fill-function)
(setq-local sentence-end-base
(rx (regexp sentence-end-base)
(? (seq "[" (+ digit) "]"))))
;; Filladapt is a GNU ELPA package.
(when (boundp 'filladapt-token-table)
;; add tokens to filladapt to match footnotes
;; 1] xxxxxxxxxxx x x x or [1] x x x x x x x
;; xxx x xx xxx xxxx x x x xxxxxxxxxx
(let ((bullet-regexp (concat (regexp-quote footnote-start-tag)
"?[0-9a-zA-Z]+"
(regexp-quote footnote-end-tag)
"[ \t]")))
(unless (assoc bullet-regexp filladapt-token-table)
(setq filladapt-token-table
(append filladapt-token-table
(list (list bullet-regexp 'bullet)))))))
(footnote--regenerate-alist)))