// -*- mode: javascript -*-
require("new-tabs.js");
require("favicon");

cwd                    = make_file("/home/slash/downloads/");
url_remoting_fn        = load_url_in_new_buffer;
read_buffer_show_icons = true;

theme_load_paths.push("/home/slash/.conkeror/themes/");
theme_load("naquadah");

define_webjump("archwiki",
               "http://wiki.archlinux.org/index.php?search=%s",
               $alternative="http://wiki.archlinux.org");
define_webjump("aur",
               "http://aur.archlinux.org/packages.php?O=0&k=%s&do_Search=Go",
               $alternative="http://aur.archlinux.org");
define_webjump("archpackages",
               "http://www.archlinux.org/packages/?sort=&q=%s&limit=50",
               $alternative="http://packages.archlinux.org");
define_webjump("emacswiki",
               "http://www.google.com/cse?cx=004774160799092323420%3A6-ff2s0o6yi&q=%s",
               $alternative="http://www.emacswiki.org");

add_hook("mode_line_hook", mode_line_adder(buffer_icon_widget, true));
remove_hook("mode_line_hook", mode_line_adder(clock_widget));