bind "C-x left" and "C-x right" to buffer-previous and buffer-next
[conkeror/arlinius.git] / modules / bindings / default / global.js
blobb390bd4feebe1df6d495f16b72db2abaaf86671e
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 define_keymap("sequence_abort_keymap");
33 define_key(sequence_abort_keymap, "C-g", "sequence-abort");
36 /**
37  * Note: Most buffer keymaps should set this as the parent.
38  */
39 define_keymap("default_global_keymap", $parent = default_base_keymap);
40 define_key(default_global_keymap, "M-x", "execute-extended-command");
41 define_key(default_global_keymap, "M-:", "eval-expression");
42 define_key(default_global_keymap, "M-!", "shell-command");
44 define_key(default_global_keymap, "C-x C-c", "quit");
45 define_key(default_global_keymap, "C-x b", "switch-to-buffer");
47 define_key(default_global_keymap, "q", "kill-current-buffer");
48 define_key(default_global_keymap, "C-x k", "kill-buffer");
49 define_key(default_global_keymap, "C-x 5 f", "find-url-new-window");
50 define_key(default_global_keymap, "C-x 5 2", "make-window");
51 define_key(default_global_keymap, "C-x 5 0", "delete-window");
52 define_key(default_global_keymap, "C-x left", "buffer-previous");
53 define_key(default_global_keymap, "C-x right", "buffer-next");
54 define_key(default_global_keymap, "M-p", "buffer-previous");
55 define_key(default_global_keymap, "M-n", "buffer-next");
56 define_key(default_global_keymap, "C-x C-f", "find-url-new-buffer");
57 define_key(default_global_keymap, "C-s", "isearch-forward");
58 define_key(default_global_keymap, "C-r", "isearch-backward");
60 define_key(default_global_keymap, "C-q", "quote-next-input-mode");
61 define_key(default_global_keymap, "C-M-q", "quote-mode");