Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomoya/search-web.el
https://github.com/tomoya/search-web.el
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomoya/search-web.el
- Owner: tomoya
- Created: 2009-07-02T00:20:01.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2015-03-12T11:05:04.000Z (almost 10 years ago)
- Last Synced: 2023-08-25T00:27:07.781Z (over 1 year ago)
- Language: Emacs Lisp
- Homepage:
- Size: 151 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
search-web.el
=========
Description
-----------
Post web search queries using `browse-url'.Screenshots
-----------![Alt Text](https://github.com/nomaddo/search-web-gif/blob/master/search-web.gif)
The upper example use extra extension `popwin` and add configs shown below.
Installation:
-----------
copy search-web.el into your load-path and add`(require 'search-web)`
You should change following variables to fit your environment
by `M-x customize-group search-web`.
- search-web-default-browser
- search-web-in-emacs-browser
- search-web-external-browserThe default values are the same as browse-url-default-browser.
This probably points external browser of emacs if you didn't change it.usage
-----------search-web-dwim: a main function
Search selected words in a browser if you select a region.
Search at point if not.I strongly recommend you add following code into your .emacs if you use `popwin` and text-browser `emacs-w3m or eww` to popup `*w3m*` and `*eww*`.
(the upper example use this config)(defadvice w3m-browse-url (around w3m-browse-url-popwin activate)
(save-window-excursion ad-do-it)
(unless (get-buffer-window "*w3m*")
(pop-to-buffer "*w3m*")))(defadvice eww-render (around eww-render-popwin activate)
(save-window-excursion ad-do-it)
(unless (get-buffer-window "*eww*")
(pop-to-buffer "*eww*")))(push "*eww*" popwin:special-display-config)
(push "*w3m*" popwin:special-display-config)