2 * (C) Copyright 2008 Nelson Elhage
4 * Use, modification, and distribution are subject to the terms specified in the
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;
45 var google_calendar_re = build_url_regex(
49 auto_mode_list.push([google_calendar_re, google_calendar_mode]);