aboutsummaryrefslogtreecommitdiffstats
path: root/conkeror/.conkerorrc/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-09-24 17:18:10 +0200
committerGravatar Tom Willemse2016-09-24 17:18:10 +0200
commit798391c5dfc4908a87811d1ad94f127785bdd2f8 (patch)
treef993b7a60150e54002d1e84f8c560e622d4bf8b3 /conkeror/.conkerorrc/init.org
parenteefc28249e6bab4ca539f3715c613e8e79cb97b6 (diff)
downloadnew-dotfiles-798391c5dfc4908a87811d1ad94f127785bdd2f8.tar.gz
new-dotfiles-798391c5dfc4908a87811d1ad94f127785bdd2f8.zip
Add MDN webjump
Diffstat (limited to 'conkeror/.conkerorrc/init.org')
-rw-r--r--conkeror/.conkerorrc/init.org25
1 files changed, 25 insertions, 0 deletions
diff --git a/conkeror/.conkerorrc/init.org b/conkeror/.conkerorrc/init.org
index 991f9ba..ab07b92 100644
--- a/conkeror/.conkerorrc/init.org
+++ b/conkeror/.conkerorrc/init.org
@@ -33,3 +33,28 @@ access.
#+BEGIN_SRC js
hint_digits = "arstdhneio";
#+END_SRC
+
+Add the ~search-engines/~ directory to the opensearch load path.
+
+#+BEGIN_SRC js
+ function add_to_opensearch_load_path(new_path) {
+ if (new_path.startsWith('/')) {
+ opensearch_load_paths.push(new_path);
+ } else {
+ let path = get_home_directory();
+ path.append('.conkerorrc');
+ path.append(new_path);
+
+ opensearch_load_paths.push(path);
+ }
+ }
+
+ add_to_opensearch_load_path('search-engines');
+#+END_SRC
+
+Add a Mozilla Developer Network webjump. This uses their OpenSearch
+description.
+
+#+BEGIN_SRC js
+ define_opensearch_webjump("mdn", "mozilla-developer-network.xml");
+#+END_SRC