From a2e124626484dac451d0fbea47de11834a5add7f Mon Sep 17 00:00:00 2001 From: sabetts Date: Tue, 5 Oct 2004 17:21:10 +0000 Subject: more docs on keymaps --- doc/ratpoison.texi | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ratpoison.texi b/doc/ratpoison.texi index 6e6d37f..22d4627 100644 --- a/doc/ratpoison.texi +++ b/doc/ratpoison.texi @@ -844,10 +844,24 @@ There is also a top level key map, @samp{top}. Any keystroke in this key map can be accessed simply by pressing the key. This is where the prefix key resides. +The following example adds a @kbd{C-x b} keybinding to switch windows, +much like @kbd{C-x b} in Emacs. See the functions below for full +descriptions. + +@example +# Create the key map +newkmap ctrl-x +# Bind b to 'select' on our new key map +definekey ctrl-x b select +# Attach our keymap to the top level key map via C-x. +definekey top C-x readkey ctrl-x +@end example + The following functions control creating, editing, and deleting key maps. @deffn Command newkmap @var{kmap} -Create a new keymap named @var{kmap}. +Create a new keymap named @var{kmap}. + @end deffn @deffn Command delkmap @var{kmap} -- cgit v1.2.3