-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* and then David Champion blurted....
> 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.

Well I did Maatens keystroke way like this:

macro index m ":set editor=\"vim +'/^$/' -c ':set textwidth=72'\\\n<mail>"
macro index r ":set editor=\"vim +'/^$/+1' -c ':set textwidth=72'\\\n<reply>"

But I must say that I find it confusing, there are unequall " pairs
which I guess has something to do wiht \\\n but that too confused me :)
Worked though huh?

I've settled on:

macro index r "<enter-command>set editor=\"vim +'/^$/+1' -c ':set 
textwidth=72'\"<enter><reply>"
macro index m "<enter-command>set editor=\"vim +'/^$/' -c ':set 
textwidth=72'\"<enter><mail>"

Much easier to read for a dope like me!

Thanks very much for all the help it's very much appreciated mutters.
- -- 

Nick Wilson

Tel:    +45 3325 0688
Fax:    +45 3325 0677
Web:    www.explodingnet.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8UHa7HpvrrTa6L5oRAvmRAJ9xP2mgQflggFMt7NSqdJXAVks7pQCfcwqT
wYw4HZIrX6DIOID4T+fVIHw=
=iR3v
-----END PGP SIGNATURE-----

Reply via email to