I set up two personalities for myself, per Martti Rahkila's excellent
instructions at http://www.acoustics.hut.fi/~mara/mutt/profiles.html. I
just took the concept a bit further.
The two personalities are called as follows in my .muttrc:
# default
source ~/.mutt/profile.default
# macros to invoke a profile
# First, in the index view....
macro index <F10> ":source ~/.mutt/profile.default\n" "Load default profile"
macro index <F9> ":source ~/.mutt/profile.libertarian\n" "Load profile:
libertarian"
# Then in the pager view...
macro pager <F10> ":source ~/.mutt/profile.default\n" "Load default profile"
macro pager <F9> ":source ~/.mutt/profile.libertarian\n" "Load profile:
libertarian"
All part of Martti's instructions so far. What I just aded is the ability
to use one key to toggle between the two. In the libertarian profile, I
added:
macro index <F9> ":source ~/.mutt/profile.default\n" "Toggle between
libertarian and defaul personalities"
macro pager <F9> ":source ~/.mutt/profile.default\n" "Toggle between
libertarian and defaul personalities"
and in the default profile:
macro pager <F9> ":source ~/.mutt/profile.libertarian\n" "Toggle between
libertarian and defaul personalities"
macro index <F9> ":source ~/.mutt/profile.libertarian\n" "Toggle between
libertarian and defaul personalities"
I also changed the documentation part of the two <F9> macros in my .muttrc.
If you had more than two personalities, you could still do this. The
default profile would set all the personality keys to their alternate
values. The alternate personality keys would set all the alternate
personality keys to the alternates, except their own, which they would set
to the default value.
--
-- C^2
No windows were crashed in the making of this email.
Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley
PGP signature