On 2002.01.24, in <[EMAIL PROTECTED]>, "Nick Wilson" <[EMAIL PROTECTED]> wrote: > > * and then Maarten den Braber blurted.... > > Maybe it's A Good Thing to give an example to ;-), here it is: > > > > bind index r noop > > bind index m noop > > What's a noop?
No-op: no operation [on this cycle :)]. > > macro index m ":set editor=\"vim -c ':0;/Subject'\\\n<mail>" > > macro index r ":set editor=\"vim -c ':0;/^$'\\\n<reply>" > > Hmmm.... Yeah, I getcha. How does mutt know how to reply/compose as well > though? Is that them noop buggers? The "\n" terminates the ":set editor" command. It's the same action as pressing the ENTER key. "<mail>" inside a macro tells mutt to execute the <mail> function. This is bound to "m" by default. Most people probably write their macros with keystrokes -- like ":" for <enter-command>, and "m" for <mail> -- but using the binding names makes your macros more universal, should you wish to share them or to change your own bindings later in life. You could also write these macros as: macro index m "<enter-command>set editor=\"vim -c ':0;/Subject'\"<enter><mail>" macro index r "<enter-command>set editor=\"vim -c ':0;/^$'\"<enter><reply>" (to use binding names for all special keystrokes), or as: macro index m ":set editor=\"vim -c ':0;/Subject'\"\\\nm" macro index r ":set editor=\"vim -c ':0;/^$'\"\\\nr" to use keystrokes and no binding names. -- -D. [EMAIL PROTECTED] NSIT University of Chicago