issue139: C-h suffix for key combos
[conkeror/arlinius.git] / modules / bindings / default / global.js
blob02f3db8af90ef8e6d75127415b8e0598e1041ad5
1 /**
2  * (C) Copyright 2004-2007 Shawn Betts
3  * (C) Copyright 2007 John J. Foerch
4  * (C) Copyright 2007-2008 Jeremy Maitin-Shepard
5  *
6  * Use, modification, and distribution are subject to the terms specified in the
7  * COPYING file.
8 **/
10 define_keymap("default_base_keymap");
13 define_keymap("default_help_keymap");
14 define_key(default_help_keymap, "a", "apropos-command");
15 define_key(default_help_keymap, "b", "describe-bindings");
16 define_key(default_help_keymap, "f", "describe-command");
17 define_key(default_help_keymap, "v", "describe-variable");
18 define_key(default_help_keymap, "k", "describe-key");
19 define_key(default_help_keymap, "c", "describe-key-briefly");
20 define_key(default_help_keymap, "p", "describe-preference");
21 define_key(default_help_keymap, "i", "help-page");
22 define_key(default_help_keymap, "t", "tutorial");
23 define_key(default_help_keymap, "w", "where-is");
25 define_key(default_base_keymap, "C-h", default_help_keymap);
28 define_keymap("sequence_help_keymap");
29 define_key(sequence_help_keymap, "C-h", "describe-active-bindings");
32 /**
33  * Note: Most buffer keymaps should set this as the parent.
34  */
35 define_keymap("default_global_keymap", $parent = default_base_keymap);
36 define_key(default_global_keymap, "M-x", "execute-extended-command");
37 define_key(default_global_keymap, "M-:", "eval-expression");
38 define_key(default_global_keymap, "M-!", "shell-command");
40 define_key(default_global_keymap, "C-x C-c", "quit");
41 define_key(default_global_keymap, "C-x b", "switch-to-buffer");
43 define_key(default_global_keymap, "q", "kill-current-buffer");
44 define_key(default_global_keymap, "C-x k", "kill-buffer");
45 define_key(default_global_keymap, "C-x 5 f", "find-url-new-window");
46 define_key(default_global_keymap, "C-x 5 2", "make-window");
47 define_key(default_global_keymap, "C-x 5 0", "delete-window");
48 define_key(default_global_keymap, "M-p", "buffer-previous");
49 define_key(default_global_keymap, "M-n", "buffer-next");
50 define_key(default_global_keymap, "C-x C-f", "find-url-new-buffer");
51 define_key(default_global_keymap, "C-s", "isearch-forward");
52 define_key(default_global_keymap, "C-r", "isearch-backward");
54 define_key(default_global_keymap, "C-q", "quote-next-input-mode");
55 define_key(default_global_keymap, "C-M-q", "quote-mode");