Created
October 1, 2013 16:30
-
-
Save oz/6781258 to your computer and use it in GitHub Desktop.
A mutt macro to reformat e-mail message bodies. This is especially useful when you receive e-mails with very long lines of text, and you'd rather read a neatly formatted text. Simply press `Esc-f` to toggle between original message body, and reformatted with `par`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add a macro on Esc-f to toggle message body filtering with par (reformat). | |
macro pager ,@fmton \ | |
"<enter-command>set display_filter=/usr/bin/par<enter> \ | |
<enter-command>macro pager \\ef ,@fmtoff 'Unformat message body'<enter> \ | |
<exit><display-message><enter>" \ | |
"Unformat message body" | |
macro pager ,@fmtoff \ | |
"<enter-command>unset display_filter<enter> \ | |
<enter-command>macro pager \\ef ,@fmton 'Reformat message body'<enter> \ | |
<exit><display-message><enter>" \ | |
"Reformat message body" | |
macro pager \ef ,@fmton 'Reformat message body' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment