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

Re: aliases



Hi Arwan,

> Have you any idea about this problem?

I use the following statement in my .muttrc .

unalias *
...
source ~/.mutt/alias

You could add more of this lines to load all of your alias files. Of
course you could bind some keys to load only one specific alias file,
too.

macro index "<F1>" ":unalias *<enter>:source ~/.mutt/alias.privat<enter>"
macro pager "<F1>" ":unalias *<enter>:source ~/.mutt/alias.privat<enter>"
macro index "<F2>" ":unalias *<enter>:source ~/.mutt/alias.work<enter>"
macro pager "<F2>" ":unalias *<enter>:source ~/.mutt/alias.work<enter>"
macro index "<F3>" ":unalias *<enter>:source ~/.mutt/alias.school<enter>"
macro pager "<F3>" ":unalias *<enter>:source ~/.mutt/alias.school<enter>"

which loads alias.privat only when pressing F1, alias.work only when
pressing F2 and so on.

        Thomas