+ <refsect1>
+ <title>MUTT INTEGRATION</title>
+
+ <para>I use mailplate as my <varname>$editor</varname> for
+ <application>mutt</application>, with the following setting in my
+ <filename>~/.mutt/muttrc</filename>:</para>
+
+ <programlisting><![CDATA[
+ set editor="~/.bin/mail/mailplate --edit --auto --keep-unknown"
+ ]]></programlisting>
+
+ <para>mailplate currently has a bit of a limitation, or at least I have
+ not figured out a way how to work around it sensibly yet. If you re-edit
+ a message from mutt’s compose menu, it causes mailplate to reprocess the
+ message, which you may not want.</para>
+
+ <para>Similarly, if you find yourself editing messages from the index or
+ pager, you probably also don’t want mailplate to get in the way. For
+ these cases, I currently use the following two keybindings:</para>
+
+ <programlisting><![CDATA[
+ macro compose e ':set my_editor="$editor"<enter>:set editor=sensible-editor<enter><edit-headers>:set editor="$my_editor"<enter>' "invoke normal editor to edit message"
+ macro index,pager e ':set my_editor="$editor"<enter>:set editor=sensible-editor<enter><edit>:set editor="$my_editor"<enter>' "invoke normal editor to edit message"
+ ]]></programlisting>
+
+ </refsect1>
+
+ <refsect1>
+ <title>VIM INTEGRATION</title>
+
+ <para>I am often editing a message with <application>vim</application> and
+ find that I need to use a different identity. For this purpose, I have
+ the following keybindings in my
+ <filename>~/.vim/ftplugin/mail.vim</filename>:</para>
+
+ <programlisting><![CDATA[
+ nmap <buffer> <F1> :w<CR>:%!mailplate --keep-unknown --auto<CR>
+ nmap <buffer> <C-P><F1> :w<CR>:%!mailplate --keep-unknown private<CR>
+ nmap <buffer> <C-P><F2> :w<CR>:%!mailplate --keep-unknown debian<CR>
+ ]]></programlisting>
+
+ <para>Now when I reply to a message, mailplate automatically choses the
+ right template, and if I later change my mind, I can press C-p, to
+ override the choice and select the private template, or just hit to have
+ it re-run the auto-detection.</para>
+
+ </refsect1>
+