1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/* -*- Mode: js -*- */
session_pref("signon.rememberSignons", true);
session_pref("signon.expireMasterPassword", false);
session_pref("signon.SignonFileName", "signons.txt");
define_webjump("ddg", "https://duckduckgo.com/?q=%s");
// Load login manager
Components.classes["@mozilla.org/login-manager;1"].getService(Components.interfaces.nsILoginManager);
// Auto complete stuff
minibuffer_auto_complete_default = true;
url_completion_use_history = true; // should work since bf05c87405
url_completion_use_bookmarks = true;
// Prompt before closing
//define_key(content_buffer_normal_keymap, "C-x C-c", "confirm-quit");
//can_kill_last_buffer = false;
// Workaround for scrollbar bug (issue351)
add_hook("create_buffer_late_hook",
function (buffer) {
buffer.top_frame.scrollbars.visible = true;
});
// load session module
require("session.js");
session_auto_save_auto_load = true; // auto-load session
// Don't show a clock in the modeline
remove_hook("mode_line_hook", mode_line_adder(clock_widget));
// Add favicons to the modeline
require("favicon");
add_hook("mode_line_hook", mode_line_adder(buffer_icon_widget), true);
read_buffer_show_icons = true;
// load firebug lite
define_variable("firebug_url",
"https://getfirebug.com/firebug-lite.js");
function firebug (I) {
var doc = I.buffer.document;
var script = doc.createElement('script');
script.setAttribute('type', 'text/javascript');
script.setAttribute('src', firebug_url);
script.setAttribute('onload', 'firebug.init();');
doc.body.appendChild(script);
}
interactive("firebug", "open firebug lite", firebug);
// Make middle-click open links in a new buffer
require("clicks-in-new-buffer.js");
clicks_in_new_buffer_target = OPEN_NEW_BUFFER_BACKGROUND;
clicks_in_new_buffer_button = 1;
|