// auto completion in the minibuffer minibuffer_auto_complete_default = true; url_completion_use_history = true; // should work since bf05c87405 url_completion_use_bookmarks = true; // display the url before going to it in hints mode hints_display_url_panel = true; // we'd like to see the # of buffers being loaded add_hook("mode_line_hook", mode_line_adder(loading_count_widget), true); // but really we'd also like to know how many buffers are present and which is the current add_hook("mode_line_hook", mode_line_adder(buffer_count_widget), true); // remove the clock //remove_hook("mode_line_hook", mode_line_adder(clock_widget)); // Tabs //require("new-tabs.js"); //Open Middle-Clicked Links in New Buffers //require("clicks-in-new-buffer.js"); //clicks_in_new_buffer_target = OPEN_NEW_BUFFER_BACKGROUND; // Now buffers open in background. //Bind Number Keys to Switch to Buffers 1-10 function define_switch_buffer_key (key, buf_num) { define_key(default_global_keymap, key, function (I) { switch_to_buffer(I.window, I.window.buffers.get_buffer(buf_num)); }); } for (let i = 0; i < 10; ++i) { define_switch_buffer_key(String((i+1)%10), i); } //set emacs as external editor editor_shell_command = "emacsclient -c"; // view source in your editor. view_source_use_external_editor = true; // make M-f and M-b switch to next and previous buffers define_key(content_buffer_normal_keymap, "M-f", "buffer-next"); define_key(content_buffer_normal_keymap, "M-b", "buffer-previous"); // redefine l as "follow link" (like f) // (too many of the keys are for the left hand, I like "l" for "link") define_key(content_buffer_normal_keymap, "l", "follow"); // Use M-l to follow link in new background buffer define_key(default_global_keymap, "M-l", "follow-new-buffer-background"); // open url in new background buffer (I can't think of a good keybinding for this) interactive("find-url-new-background-buffer", "Open a URL in a new background buffer", alternates(follow_new_buffer_background, follow_new_window), $browser_object = browser_object_url, $prompt = "Find url"); // cwd cwd=get_home_directory(); cwd.append("Downloads"); // History url_completion_use_history = true; // Time in history session_pref('browser.history_expire_days', 5);