| line |
source |
| 1 | // run_external_editor_function = create_external_editor_launcher("c:\\program files\\Emacs\\bin\\gnuclient.exe", ["-s"]); |
| 2 | |
| 3 | define_key(default_global_keymap, "C-x C-b", "switch-to-buffer"); |
| 4 | define_key(default_global_keymap, "C-,", "switch-to-buffer"); |
| 5 | define_key(default_global_keymap, "C-c k", "kill-current-buffer"); |
| 6 | define_key(content_buffer_text_keymap, "C-z", "cmd_undo"); |
| 7 | |
| 8 | url_completion_use_history = true; |
| 9 | kill_whole_line = true; |
| 10 | can_kill_last_buffer = false; |
| 11 | |
| 12 | add_delicious_webjumps("p1r4nh4"); |
| 13 | add_webjump("g", "http://www.google.com/search?q=%s"); |
| 14 | add_webjump("w", "http://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go"); |
| 15 | add_webjump("r", "http://ru.wikipedia.org/wiki/Special:Search?search=%s&go=Go"); |
| 16 | add_webjump("q", "http://uk.wikipedia.org/wiki/Special:Search?search=%s&go=Go"); |
| 17 | |
| 18 | |
| 19 | // new functions |
| 20 | interactive("follow-new-buffer-background", |
| 21 | "follow to a link in new buffer, opened in background", |
| 22 | function (I) { |
| 23 | var target = OPEN_NEW_BUFFER_BACKGROUND; |
| 24 | var element = yield I.read_browser_object("follow", "Follow", "links", target); |
| 25 | browser_element_follow(I.buffer, target, element); |
| 26 | }); |
| 27 | |
| 28 | function other_buffer (window) |
| 29 | { |
| 30 | window.buffers.current = window.buffers.buffer_list[1]; |
| 31 | } |
| 32 | interactive("switch-other-buffer", |
| 33 | "Switch to previously selected buffer", |
| 34 | function (I) { |
| 35 | other_buffer(I.window); |
| 36 | }); |
| 37 | |
| 38 | |
| 39 | // new keys |
| 40 | define_key(content_buffer_normal_keymap, "M-f", "follow-new-buffer-background"); |
| 41 | define_key(content_buffer_normal_keymap, "C-M-l", "switch-other-buffer"); |
| 42 | |
| 43 | |