.. | ||
img | ||
packages.el | ||
README.md |
edit-server contribution layer for Spacemacs
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))))
)