summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2004-10-05 17:21:10 +0000
committersabetts <sabetts>2004-10-05 17:21:10 +0000
commita2e124626484dac451d0fbea47de11834a5add7f (patch)
tree6a17b1db64c87c1450da4f69f4c31569feb39c5f
parentd18a2dbed12d12a2a8660fb6005a6be277ff5568 (diff)
downloadratpoison-a2e124626484dac451d0fbea47de11834a5add7f.zip
more docs on keymaps
-rw-r--r--doc/ratpoison.texi16
1 files changed, 15 insertions, 1 deletions
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}