footnote

Homepage: https://www.gnu.org/software/emacs

Author: Boruch Baum, Steven L Baur

Summary

Footnote support for message mode

Commentary

This file provides footnote[1] support for message-mode in emacsen.
footnote-mode is implemented as a minor mode.

[1] Footnotes look something like this.  Along with some decorative
stuff.

TODO:
+ Reasonable Undo support.
  - could use an `apply' entry in the buffer-undo-list to be warned when
    a footnote we inserted is removed via undo.
  - should try to handle the more general problem of deleting/removing
    footnotes via standard editing commands rather than via footnote
    commands.
+ more language styles.
+ The key sequence 'C-c ! a C-y C-c ! b' should auto-fill the
  footnote in adaptive fill mode.  This does not seem to be a bug in
  `adaptive-fill' because it behaves that way on all point movements
+ Handle footmode mode elegantly in all modes, even if that means refuses to
  accept the burden.  For example, in a programming language mode, footnotes
  should be commented.
+ Manually autofilling the a first footnote should not cause it to
  wrap into the footnote section tag
  + Current solution adds a second newline after the section tag, so it is
    clearly a separate paragraph.  There may be stylistic objections to this.
+ Footnotes with multiple paragraphs should not have their first
  line out-dented.
+ Upon leaving footnote area, perform an auto-fill on an entire
  footnote (including multiple paragraphs), or on entire footnote area.
  + fill-paragraph takes arg REGION, but seemingly only when called
    interactively.
+ At some point, it became necessary to change `footnote-section-tag-regexp'
  to remove its trailing space.  (Adaptive fill side-effect?)
+ useful for lazy testing
  (setq footnote-narrow-to-footnotes-when-editing t)
  (setq footnote-section-tag "Footnotes: ")
  (setq footnote-section-tag-regexp "Footnotes\\(\\[.\\]\\)?:")

Dependencies

Reverse dependencies