pazz/alot — pull request #739 by andresmrm (2014-12-09 13:31:01+00:00)
Title: config to allow specific command for when editing a mail the first time

New config ´new_file_editor_cmd´ that allows to set the command to be used when editing a mail for the first time (reply, forward, ...). The ´editor_cmd´ will be used only in the Envelope Buffer, after you openned and closed the mail a first time.
If ´new_file_editor_cmd´ is unset (default) uses the old behavior.

Why all this?

For exemple:

new_file_editor_cmd = vim -c 'exe "norm }O\n\n\O"' -c 'startinsert'
editor_cmd = vim -c 'exe "norm }"'

Will open some space between the headers and the quoting part, and enter insertion mode in Vim. That's something I always have to do when editing a new mail. But I don't want it to happen twice in the same mail (for example, when I'm in Enevelop Buffer, forgot something in my mail, and I'm going to edit it for the second time).