[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Emacs-w3m has a number of built-in search engines you can use. What if you want to use your favorite search engine and it's not listed in the known search engines? You have to add it to the list of search engines, and it's quite easy:
http://my.searchengine.com/?query=foobar
where foobar is the term you want to search for.
(eval-after-load "w3m-search" '(add-to-list 'w3m-search-engine-alist '("My engine" "http://my.searchengine.com/?query=%s" nil))) |
Replace the first field "My engine" with the description of your
engine, the second field with the entry point (the `%s' is
important, it will be replaced by the search term when you issue the
search), and the third field is the encoding to use, nil
or
omitting this field means to use the value of
w3m-default-coding-system
as a regular encoding.
For English search engines, you rarely have to worry about this.
However, for some Japanese search engines, you may need to specify
something (e.g. euc-japan
) there.
(eval-after-load "w3m-search" '(progn (add-to-list 'w3m-search-engine-alist '("My engine" "http://my.searchengine.com/?query=%s" nil)) (add-to-list 'w3m-uri-replace-alist '("\\`my:" w3m-search-uri-replace "My engine")))) |
This way you can also use a URL like my:foobar to search for the term "foobar" with your engine.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |