This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/tools/edit-server
2015-05-16 01:09:29 -04:00
..
img Adding edit-server layer. 2015-05-16 01:09:29 -04:00
packages.el Adding edit-server layer. 2015-05-16 01:09:29 -04:00
README.md Adding edit-server layer. 2015-05-16 01:09:29 -04:00

edit-server contribution layer for Spacemacs

logo

Table of Contents

Description

This layer provides edit-server - a server that responds to edit requests from Chrome. The package is required by the Edit with Emacs Google Chrome extension.

More information can be found on Emacs Wiki.

Install

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

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

The server is configured to start when the editor is opened.

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))))
)