Emacs Helm Interface for quick Google searches
quelpa
is at https://github.com/quelpa/quelpa
(quelpa '(helm-google :fetcher github :repo "steckerhalter/helm-google"))
helm-google
is on MELPA (see there for more info).
helm-google
has two methods to search for results. One is a deprecated JSON API which still works but only gives a maximum of 4 results. The other method is via scraping the html of the website.
You can configure the method via M-x customize helm-google RET
. The default is html. If Google changes the markup this may break and you probably want to use the API.
Call it with:
M-x helm-google
Or bind it to a key:
(global-set-key (kbd "C-h C--") 'helm-google)
If a region is selected it will take that as default input and search Google immediately. Otherwise it will start to search after you have entered a term. Pressing RET
on a result calls the browse-url
function which should open the URL in your web browser.
There are two Helm actions defined. The first (default) action is the one mentioned above and the second action will open the URL with the internal Emacs Web Wowser
(EWW, since Emacs 24.4). You can press F2 to execute this action directly.
If you want use EWW by default you can set it as your default browser like so:
(setq browse-url-browser-function 'eww-browse-url)
If you want to keep the search open use C-z
instead of RET
.
helm-google
is added as an action to helm-google-suggest
(thanks to Dickby). Press TAB and choose Helm-Google
or use the shortcut listed there directly.