spacemacs/contrib/chrome
2015-05-16 01:32:46 -04:00
..
img Rename edit-server layer to chrome 2015-05-16 01:32:46 -04:00
packages.el Rename edit-server layer to chrome 2015-05-16 01:32:46 -04:00
README.md Rename edit-server layer to chrome 2015-05-16 01:32:46 -04:00

chrome contribution layer for Spacemacs

logo

Table of Contents

Description

This layer provides some integration with the Google Chrome browser.

Feature:

Install

Layer

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

(setq-default dotspacemacs-configuration-layers '(edit-server))

Chrome extension

edit-server is a server that responds to edit requests sent Chrome via the Google Chrome extension Edit with Emacs. You have to install this extension.

More information can be found on Emacs Wiki.

The edit server is configured to start automatically when Spacemacs starts.

Configuration

You can hook into edit-server's provided hooks in dotspacemacs/config in your .spacemacs file.

(defun dotspacemacs/config ()
  ;; Open github text areas as markdown
  (add-hook 'edit-server-start-hook
            (lambda ()
              (when (string-match "github.com" (buffer-name))
                (markdown-mode))))
)