Next: latex.sc Up: SmacLib Previous: java.sc

# keydef-ext.sc

This file contains functions that globalize key bindings, on a "global" mode list.

- void globalize_mode(char* mode_name); makes mode mode_name global. This means that the mode is added to the global list.
- void global_key_def(char* key_name, char* command_name); binds the key key_name to the command command_name in all modes that are in the global list. Beware that this "global" key definition is synchronous: globalize_mode does not bind any keys, and global_key_def only calls key_def on the modes currently in the list.