~Because everybody needs their own web-search Emacs function~
Search the word under point or region on the web.
(straight-use-package '(yasearch :type git :repo "https://git.sr.ht/~kisaragi_hiu/yasearch"))
yasearch.el under your
(require 'yasearch) in your init file.
yasearch engine query: lookup
Interactively, ask to select
query is taken from
yasearch-evil: an evil motion to search word objects with
This needs to be required seperately:
Bind this to your preferred keys in normal state, say gs. Now
gsiW asks you which search engine to use, then searches the WORD at
iW) with it.
yasearch-engine-alist: An alist mapping search engines with their query URLs.
Each item is a cons cell mapping the engine's name as a symbol and the query URL. Example:
'((google . "https://google.com/search?q=%s") (duckduckgo . "https://duckduckgo.com/?q=%s"))
xah-lookup-googleetc. functions, C-h 1 ~ C-h 6 bindings,
[simple-query "google.com" "google.com/search?q=" ""], search providers can be custom functions; builtin since Emacs 20