From 49c08055706e462b185a2d35f8c96ab0cb9beae7 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 30 Sep 2007 18:11:30 +0100 Subject: [PATCH] add vim/mutt config to README --- README | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README b/README index 04f395d..76fb2ef 100644 --- a/README +++ b/README @@ -7,6 +7,26 @@ find an example configuration and template files in The tool will install defaults in your home directory in first invocation. +I have the following settings in my muttrc and vimrc: + +~/.mutt/muttrc: + set editor="~/.bin/mail/mailplate --edit --auto --keep-unknown" + +~/.mutt/keybindings: + #TODO this is a hack until mailplate does not readd headers. + macro compose e ':set my_editor="$editor":set editor=sensible-editor:set editor="$my_editor"' "invoke normal editor to edit message" + macro index,pager e ':set my_editor="$editor":set editor=sensible-editor:set editor="$my_editor"' "invoke normal editor to edit message" + +~/.vim/ftplugin/mail.vim: + nmap :w:%!mailplate --keep-unknowni --auto + nmap :w:%!mailplate --keep-unknown private + nmap :w:%!mailplate --keep-unknown debian + +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. + The source code is maintained in git, so if you want to contribute, use the following URL to clone: -- 2.39.5