diff options
author | Tom Willemse | 2016-04-13 12:37:35 +0200 |
---|---|---|
committer | Tom Willemse | 2016-04-13 12:37:35 +0200 |
commit | a65d332001546b6ef24d066903b6a282bb1da1bb (patch) | |
tree | b3704e05db7458a054aa3d541919220ffdbe5f16 /conkeror/.conkerorrc/init.js | |
parent | 6c3a9794edea55dd36d2117ac8696ce815afab3b (diff) | |
download | dotfiles-a65d332001546b6ef24d066903b6a282bb1da1bb.tar.gz dotfiles-a65d332001546b6ef24d066903b6a282bb1da1bb.zip |
Fix Conkeror config for modern Firefox
Diffstat (limited to 'conkeror/.conkerorrc/init.js')
-rw-r--r-- | conkeror/.conkerorrc/init.js | 82 |
1 files changed, 43 insertions, 39 deletions
diff --git a/conkeror/.conkerorrc/init.js b/conkeror/.conkerorrc/init.js index 5996849..7d76082 100644 --- a/conkeror/.conkerorrc/init.js +++ b/conkeror/.conkerorrc/init.js @@ -1,40 +1,40 @@ require("content-policy.js"); require("favicon"); require("session"); -require("github"); -require("reddit"); - -let (home = get_home_directory()) { - let (projects = home.clone(), - init = home.clone(), - downloads = home.clone()) { - - projects.append('projects'); - init.append('.conkerorrc'); - downloads.append('downloads'); - - let (cdispass = projects.clone(), - site_js = init.clone(), - page_modes = init.clone(), - themes = init.clone(), - search_engines = init.clone()) { - - cdispass.append('cdispass'); - site_js.append('site-js'); - page_modes.append('page-modes'); - themes.append('themes'); - search_engines.append('search-engines'); - - load_paths.push("file://" + cdispass.path); - load_paths.push("file://" + site_js.path); - load_paths.push("file://" + page_modes.path); - theme_load_paths.push(themes.path); - opensearch_load_paths.push(search_engines); - }; - - cwd = downloads; - }; -}; +// require("github"); +// require("reddit"); + +function setup_load_paths() { + let home = get_home_directory(), + projects = home.clone(), + init = home.clone(), + downloads = home.clone(); + + projects.append('projects'); + init.append('.conkerorrc'); + downloads.append('downloads'); + + let cdispass = projects.clone(), + site_js = init.clone(), + page_modes = init.clone(), + themes = init.clone(), + search_engines = init.clone(); + + cdispass.append('cdispass'); + site_js.append('site-js'); + page_modes.append('page-modes'); + themes.append('themes'); + search_engines.append('search-engines'); + + load_paths.push("file://" + cdispass.path); + load_paths.push("file://" + site_js.path); + load_paths.push("file://" + page_modes.path); + theme_load_paths.push(themes.path); + opensearch_load_paths.push(search_engines); + + cwd = downloads; +} +setup_load_paths(); require("cdispass"); require("jira"); @@ -258,10 +258,10 @@ add_hook("before_quit_hook", oni_before_quit_func); add_hook("content_policy_hook", content_policy_bytype); add_hook("mode_line_hook", mode_line_adder(buffer_count_widget)); add_hook("mode_line_hook", mode_line_adder(buffer_icon_widget), true); -add_hook("mode_line_hook", mode_line_adder(downloads_status_widget)); +// add_hook("mode_line_hook", mode_line_adder(downloads_status_widget)); add_hook('mode_line_hook', mode_line_adder(scuttle_bookmarked_widget)); -remove_hook("download_added_hook", open_download_buffer_automatically); +// remove_hook("download_added_hook", open_download_buffer_automatically); hints_minibuffer_annotation_mode(true); theme_load("yoshi"); @@ -341,10 +341,14 @@ read_url_handler_list = [read_url_github_command_handler, read_url_duckduckbang_handler]; // Mozrepl -let (mozrepl_init = get_home_directory()) { +function setup_mozrepl() { + let mozrepl_init = get_home_directory(); + mozrepl_init.appendRelativePath(".mozrepl-conkeror.js"); - session_pref('extensions.mozrepl.initUrl', make_uri(mozrepl_init).spec); -}; + session_pref('extensions.mozrepl.initUrl', + make_uri(mozrepl_init).spec); +} +setup_mozrepl(); if ('@hyperstruct.net/mozlab/mozrepl;1' in Cc) { let mozrepl = Cc['@hyperstruct.net/mozlab/mozrepl;1'] |