Move webjumps to separate file

This commit is contained in:
Tom Willemse 2016-10-29 12:26:38 +02:00
parent 10c653db7d
commit a6c9acf85e
4 changed files with 32 additions and 27 deletions

View file

@ -1,2 +1 @@
init.js *.js
private.js

View file

@ -1,6 +1,6 @@
include ../../dotfiles.mk include ../../dotfiles.mk
all: init.js all: init.js webjumps.js
%.js: %.org %.js: %.org
$(call tangle,js) $(call tangle,js)

View file

@ -52,30 +52,6 @@ Add the ~search-engines/~ directory to the opensearch load path.
add_to_opensearch_load_path('search-engines'); add_to_opensearch_load_path('search-engines');
#+END_SRC #+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
Add a Duck Duck Go webjump. This uses the OpenSearch
description. Conkeror has a =duckduck= webjump, but I prefer the
shorter ddg.
#+BEGIN_SRC js
define_opensearch_webjump("ddg", "duckduckgo.xml");
#+END_SRC
Add a [[https://wpackagist.org/][WordPress Packagist]] webjump.
#+BEGIN_SRC js
define_webjump("wpackagist",
"https://wpackagist.org/search?q=%s&type=any",
$alternative="https://wpackagist.org/",
$doc="Search WordPress packagist for plugins and themes.");
#+END_SRC
Add the ~site-js/~ directory to the load path. Add the ~site-js/~ directory to the load path.
#+BEGIN_SRC js #+BEGIN_SRC js

View file

@ -0,0 +1,30 @@
#+TITLE: Conkeror Webjumps
* Opensearch webjumps
Add a Mozilla Developer Network webjump. This uses their OpenSearch
description.
#+BEGIN_SRC js
define_opensearch_webjump("mdn", "mozilla-developer-network.xml");
#+END_SRC
Add a Duck Duck Go webjump. This uses the OpenSearch
description. Conkeror has a =duckduckgo= webjump, but I prefer the
shorter ddg. I define a new open search webjump because if I alias
the webjump it'll still show up as =duckduckgo=.
#+BEGIN_SRC js
define_opensearch_webjump("ddg", "duckduckgo.xml");
#+END_SRC
* Regular webjumps
Add a [[https://wpackagist.org/][WordPress Packagist]] webjump.
#+BEGIN_SRC js
define_webjump("wpackagist",
"https://wpackagist.org/search?q=%s&type=any",
$alternative="https://wpackagist.org/",
$doc="Search WordPress packagist for plugins and themes.");
#+END_SRC