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/chrome
Xiang Ji 706115fc0e Fixed various naming errors in package file descriptions
Well, probably mostly aesthetic, but still they just look a bit jarring out there.
2015-08-02 17:44:59 -04:00
..
img Rename edit-server layer to chrome 2015-05-16 01:32:46 -04:00
packages.el Fixed various naming errors in package file descriptions 2015-08-02 17:44:59 -04:00
README.org Fix various issues with org markup 2015-06-11 21:31:42 -04:00

Chrome contribution layer for Spacemacs

/TakeV/spacemacs/media/commit/7051f91c47ee74b3b665737971b14af1d5145226/contrib/chrome/img/chrome.png

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 '(chrome))

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

Use edit-server-url-major-mode-alist to choose a major mode initialization function based on edit-server-url, or fall back to edit-server-default-major-mode that has a current value of markdown-mode.

  (defun dotspacemacs/config ()
  ;; Open github text areas as org buffers
  ;; currently they are opened as markdown
    (setq edit-server-url-major-mode-alist
        '(("github\\.com" . org-mode))))