From 4ca9e47fca39687becd9df55a540568b848bfcaa Mon Sep 17 00:00:00 2001 From: sabetts Date: Mon, 15 May 2006 23:46:27 +0000 Subject: * src/manage.c (grab_top_level_keys): use defaults.top_kmap for the top kmap * src/main.c (init_defaults): init defaults.top_kmap * src/events.c (handle_key): use defaults.top_kmap for the top kmap * src/data.h (struct rp_defaults): new field, top_kmap * src/actions.c (set_topkmap): new prototype (init_set_vars): topkmap new set variable (initialize_default_keybindings): use defaults.top_kmap for the top kmap (cmd_undefinekey): likewise (cmd_definekey): likewise (cmd_escape): likewise (cmd_delkmap): likewise (set_topkmap): new function --- doc/ratpoison.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/ratpoison.texi b/doc/ratpoison.texi index 619fc6f..5c14837 100644 --- a/doc/ratpoison.texi +++ b/doc/ratpoison.texi @@ -1024,6 +1024,11 @@ key. When the user does, the command will display the command bound to this key. @end deffn +@deffn Command {set topkmap} @var{kmap} +Set the top level keymap to @var{kmap}. You might use this to swap +between several common keymappings or to implement modes. +@end deffn + @node Default Key Bindings, , Key Maps, Keystrokes @section Default Key Bindings -- cgit v1.2.3