Added API to manipulate external launchers for MIME types.
[conkeror.git] / modules / page-modes / google-calendar.js
blobcb794cc7fe09b14f9976933915a3592f17091b78
1 /**
2  * (C) Copyright 2008 Nelson Elhage
3  *
4  * Use, modification, and distribution are subject to the terms specified in the
5  * COPYING file.
6 **/
8 require("content-buffer.js");
9 require("bindings/default/content-buffer/normal.js");
11 define_keymap("google_calendar_keymap", $parent = content_buffer_normal_keymap);
13 define_key(google_calendar_keymap, "c", null, $fallthrough);
14 define_key(google_calendar_keymap, "C-c c", null, "copy");
16 define_key(google_calendar_keymap, "/", null, $fallthrough);
17 define_key(google_calendar_keymap, "p", null, $fallthrough);
18 define_key(google_calendar_keymap, "j", null, $fallthrough);
19 define_key(google_calendar_keymap, "n", null, $fallthrough);
20 define_key(google_calendar_keymap, "k", null, $fallthrough);
21 define_key(google_calendar_keymap, "t", null, $fallthrough);
22 define_key(google_calendar_keymap, "C-c t", null, "follow-top");
24 define_key(google_calendar_keymap, "d", null, $fallthrough);
25 define_key(google_calendar_keymap, "x", null, $fallthrough);
26 define_key(google_calendar_keymap, "C-c x", null, "shell-command-on-file");
27 define_key(google_calendar_keymap, "w", null, $fallthrough);
28 define_key(google_calendar_keymap, "m", null, $fallthrough);
29 define_key(google_calendar_keymap, "a", null, $fallthrough);
30 define_key(google_calendar_keymap, "q", null, $fallthrough);
31 define_key(google_calendar_keymap, "s", null, $fallthrough);
32 define_key(google_calendar_keymap, "C-c s", null, "save");
33 define_key(google_calendar_keymap, "u", null, $fallthrough);
34 define_key(google_calendar_keymap, "C-c u", null, "go-up");
35 define_key(google_calendar_keymap, "return", null, $fallthrough);
36 define_key(google_calendar_keymap, "tab", null, $fallthrough);
37 define_key(google_calendar_keymap, "M-s", null, $fallthrough);
38 define_key(google_calendar_keymap, "escape", null, $fallthrough);
40 define_page_mode("google_calendar_mode", "Google Calendar",
41                  { enable: function (buffer) {
42                      buffer.local_variables.content_buffer_normal_keymap = google_calendar_keymap;
43                  }});
45 var google_calendar_re = build_url_regex(
46     { domain: "google",
47       path: "calendar/",
48       allow_www: true });
49 auto_mode_list.push([google_calendar_re, google_calendar_mode]);