Xu Wang wrote: > On Wed, Jun 3, 2015 at 5:03 PM, Xu Wang <[email protected]> wrote: > > To give an example, if I am in the postpone menu, I would like my > > editor to be, e.g. "vim", but in the index map, I would like my editor > > to be "gedit". > > Another use case for this is setting index_format for the postpone > map. Having %n in postpone map does not make much sense because you > are the sender. So it would be nice to easily change to e.g. %t.
Okay, I think I understand what you're asking for. Basically you are thinking of something like keymap-hook <keymap> <function> Where <keymap> is one of the maps listed for the bind command: generic, alias, attach, browser, editor, index, compose, pager, ... Both of your examples are with respect to the postpone menu screen though. It feels like this feature would be overkill to compensate for a deficiency in the customizability of the postpone/resume menu. It's also a bit unclear when this hook should fire. For example, for the index keymap, would it fire the first time we enter the index, or should it also fire after every command that changes the keymap too (e.g. after viewing a message in the pager, composing an email, saving an email [because of the editor keymap], etc). I'm not convinced the amount of programmatic work involved would be worth the small payoff in improved customization. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA http://www.8t8.us/configs/gpg-key-transition-statement.txt
signature.asc
Description: PGP signature
