spacemacs/layers/search-engine
syl20bnr 6b33031dc5 core: dotspacemacs-distribution, spacemacs-core layer and rename contrib
- Rename contrib directory to layers
- Add new variable dotspacemacs-distribution
- Move spacemacs layer to layers/!distribution
- New layer spacemacs-core in layers/!distribution
- User can now set dotspacemacs-distribution to spacemacs or
  spacemacs-core (default spacemacs)

spacemacs-core is very lightweight layer sufficient to build upon
spacemacs.
2015-09-07 23:44:43 -04:00
..
img core: dotspacemacs-distribution, spacemacs-core layer and rename contrib 2015-09-07 23:44:43 -04:00
packages.el core: dotspacemacs-distribution, spacemacs-core layer and rename contrib 2015-09-07 23:44:43 -04:00
README.org core: dotspacemacs-distribution, spacemacs-core layer and rename contrib 2015-09-07 23:44:43 -04:00

Search Engine contribution layer for Spacemacs

/TakeV/spacemacs/media/commit/bac79f03b7d8eb8a3c4277371a33cd50b8736e8b/layers/search-engine/img/searchengine.jpg

Description

This layer adds support for the Search Engine package.

Supported search engines

  • Amazon
  • Duck Duck Go
  • Google
  • Google Images
  • GitHub
  • Google Maps
  • Twitter
  • Project Gutemberg
  • Youtube
  • Stack Overflow
  • Spacemacs Issues
  • Wikipedia
  • Wolfram Alpha

Install

To use this contribution add it to your ~/.spacemacs

  (setq-default dotspacemacs-configuration-layers '(search-engine))

Key Bindings

Evil Holy Command
SPC a / C-c / Summon a Helm buffer to select any engine

Customize it!

If you'd rather have emacs use chrome, or firefox or any other thing (eww) you can have that customization. For example for google chrome you can put this in your dotspacemacs/config:

  (setq browse-url-browser-function 'browse-url-generic
        engine/browser-function 'browse-url-generic
        browse-url-generic-program "google-chrome")

Also if you want more search engines, just push them (do this in dotspacemacs/config)

(push '(custom1
         :name "Custom Search Engine 1"
         :url "http://www.domain.com/s/stuff_sutff_remember_to_replace_search_candidate_with_%s")
        search-engine-alist)

If you'd rather not use helm but would want a specific search engine, remember the function generated is always engine/search-(the name of the search engine lower-case and hyphen instead-of-spaces-for-separation) so you can bind that to any key binding you want.