On Thu, Aug 09, 2007 at 06:54:37PM +0200, Rado S wrote: > =- Chris G wrote on Wed 8.Aug'07 at 22:35:02 +0100 -= > > > macro index S ":push <enter-command>^Mset > > mbox_type=maildir^M<save-message>" > > macro index s ":push <enter-command>^Mset > > mbox_type=mbox^M<save-message>" > > a) Don't put trailing spaces :)
There aren't any in my muttrc, I suspect they may result from my cut and paste into the message. > b) Don't use ^M but <enter> I did try <enter> but it didn't appear to work as I wanted, it might have been 'finger trouble' but I don't think so. > c) You don't need "push" for this, make it a simple macro. > How would I do this? > > (OK, I need the same macro defined in a couple of other modes as > > well but the above is the essence of what I need, hurrah!) > > Latest mutt lets you define for several modes at once. > > =- Chris G wrote on Wed 8.Aug'07 at 22:06:09 +0100 -= > > > Ah, I hadn't seen that there is an <enter-command> function which > > effectively takes one to the : prompt, thank you. I'll experiment > > some more. > > Hit '?', there you see all function names and current keybindings. > Er, yes, but there are over 100 of them and while I'm familiar with quite a few of them I just hadn't noticed the <enter-command>. -- Chris Green