next up previous contents index Next: Others Up: Functions
Previous: Colors   Modes permits to locally configure key
bindings and default font. See also C-mode §5.24 page gif and
french mode §5.19 page gif.     char * current_mode()  Returns
the name of the current window mode in a new allocated string.
ATTENTION Be careful, the string is allocated each time the
function is called, use free() to release it.     void
create_mode(char * name) void create_mode(char * name, char *
suffixes) void create_mode(char * name, char * suffixes, char *
fontname)  Creates a new mode named name if it does not already
exist. This mode will be created with default mode bindings. If
suffixes is valuated, the next file having one of these suffixes
will be loaded in name mode. This also goes for fontname.
suffixes is one or a sequence of words beginning by a dot, and
separated by a space. For instance the C\_mode associated
suffixes are defined with ".h .c .C .H .sc".
create_mode("secret-mode", ".dontreadme", "5x8");     void