next up previous contents
Next: Changing the Index View Up: Advanced Customization Previous: Rebinding Keyboard Shortcuts   Contents


Writing Macros

When you'd like a key stroke to execute something more complex than a simple command, use a macro to bind complex keystroke combinations to a key. Three examples will get you started. The first one assigns to the F2 key the command ``change current folder to the inbox,'' which you'd use if you were looking at the list of emails stored in another folder and wished to go back to the inbox. The second macro assigns to the F3 key the command ``change current folder to the `Sent' folder''. The third macro assigns to the key combination comma-c the command ``save this message to the `Linux-list' folder.'' In each case, the backslash-n at the end is a carriage return. Far more complicated procedures are available to you in this way, using $\backslash$r to hit carriage returns between events, and taking advantage of the long list of functions available to you (see section B for a complete list).

macro index <f2> "c !\n"
macro index <f3> "c =Sent\n"
macro index ,c "s=Linux-list\r"



Randall Wood 2009-12-02