emacs: Add more functions to clean up text/plain parts
authorDavid Edmondson <dme@dme.org>
Thu, 22 Apr 2010 12:26:06 +0000 (13:26 +0100)
committerCarl Worth <cworth@cworth.org>
Sat, 24 Apr 2010 14:52:37 +0000 (07:52 -0700)
commit97570954cb583cacac35b0235cbe449a07630ae3
treef143e9386bf7d596c922b3009ef55873dcc5d9c9
parent7c5f017a30bda339eacb4cdde08a9a7aee3662f4
emacs: Add more functions to clean up text/plain parts

Add:
- notmuch-wash-wrap-long-lines: Wrap lines longer than the width of
  the current window whilst maintaining any citation prefix.
- notmuch-wash-tidy-citations: Tidy up citations by:
  - compress repeated otherwise blank citation lines,
  - remove otherwise blank citation lines at the head and tail of a
    citation and remove blank lines between attribution statements and
    the citation,
- notmuch-wash-compress-blanks: Compress repeated blank lines and
  remove leading and trailing blank lines.

Enable `notmuch-wash-tidy-citations' and
`notmuch-wash-compress-blanks' by default by adding them to
`notmuch-show-insert-text/plain-hook'. `notmuch-wash-wrap-long-lines'
is not enabled by default.

If `notmuch-wash-wrap-long-lines' is enabled, word wrapping of the
buffer leads to an unappealing display of text, so provide a function
to disable it and add it to the list of `notmuch-show-mode' hook
functions.
emacs/Makefile.local
emacs/coolj.el [new file with mode: 0644]
emacs/notmuch-show.el
emacs/notmuch-wash.el