piranha's configurations

view .conkerorrc @ 207:902d1df061da

hg config
author Alexander Solovyov <piranha@piranha.org.ua>
date Wed Aug 06 13:35:03 2008 +0300 (13 days ago)
parents 38da5080239c
children
line source
1// run_external_editor_function = create_external_editor_launcher("c:\\program files\\Emacs\\bin\\gnuclient.exe", ["-s"]);
2
3define_key(default_global_keymap, "C-x C-b", "switch-to-buffer");
4define_key(default_global_keymap, "C-,", "switch-to-buffer");
5define_key(default_global_keymap, "C-c k", "kill-current-buffer");
6define_key(content_buffer_text_keymap, "C-z", "cmd_undo");
7
8url_completion_use_history = true;
9kill_whole_line = true;
10can_kill_last_buffer = false;
11
12add_delicious_webjumps("p1r4nh4");
13add_webjump("g", "http://www.google.com/search?q=%s");
14add_webjump("w", "http://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go");
15add_webjump("r", "http://ru.wikipedia.org/wiki/Special:Search?search=%s&go=Go");
16add_webjump("q", "http://uk.wikipedia.org/wiki/Special:Search?search=%s&go=Go");
17
18
19// new functions
20interactive("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
28function other_buffer (window)
29{
30 window.buffers.current = window.buffers.buffer_list[1];
31}
32interactive("switch-other-buffer",
33 "Switch to previously selected buffer",
34 function (I) {
35 other_buffer(I.window);
36 });
37
38
39// new keys
40define_key(content_buffer_normal_keymap, "M-f", "follow-new-buffer-background");
41define_key(content_buffer_normal_keymap, "C-M-l", "switch-other-buffer");
42
43