Table of Contents

Search Engine layer

Table of ContentsClose


1 Description

This layer adds support for the Search Engine package.

1.1 Supported search engines

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

2 Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add search-engine to the existing dotspacemacs-configuration-layers list in this file.

3 Key Bindings

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

4 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/user-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/user-config)

(push '(custom1
         :name "Custom Search Engine 1"
         :url "")

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.

Author: Sylvain Benner

Created: 2016-10-03 Mon 00:55