<<< Date Index >>>     <<< Thread Index >>>

Re: Grouping commands in muttrc?



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

On Thursday, January 24 at 04:29 PM, quoth Dan H.:
> please note that I'm sending this from mutt. It was an uphill battle 
> and I'm still not sure if I won, but I'm getting there.

So far so good! The message made it!

> One question: Is it possible to group commands after, for instance, 
> a folder-hook? Like when I move into a folder I want a whole bunch 
> of commands executed. Or do I have to put those into a file and 
> source that with the folder-hook?

Yup, you can put several commands in a folder-hook; you just have to 
separate them with semicolons and put them all in a single quote 
block. They can even span multiple lines, like so:

     folder-hook . 'set ascii_chars=yes ; set othervariable=no ; \
                    set thirdvariable=ask-yes'

~Kyle
- -- 
Do not seek to follow in the footsteps of the men of old. Seek what 
they sought.
                                                        -- Matsuo Basho
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFHmLg4BkIOoMqOI14RAl0HAJ9wEh6SRBXGnySSYxw3oGpoGSMfNQCgnnei
slLvPspxQUtn0DWAjeQ57as=
=fkw4
-----END PGP SIGNATURE-----