ff8cd06046
- lists were not correctly indented sometimes - **note** and such things do not exist in org - Note and Important - Change Feature list to heading - Change TODOS to actual org TODOS - Add TOC to python layer - list indentation - some typos I could not leave unchanged - TODO formatting - List indentation - typos - wrong markup fix conversion issues
51 lines
1.6 KiB
Org Mode
51 lines
1.6 KiB
Org Mode
#+TITLE: Chrome contribution layer for Spacemacs
|
|
|
|
[[file:img/chrome.png]]
|
|
|
|
* Table of Contents :TOC@4:
|
|
- [[#description][Description]]
|
|
- [[#feature][Feature:]]
|
|
- [[#install][Install]]
|
|
- [[#layer][Layer]]
|
|
- [[#chrome-extension][Chrome extension]]
|
|
- [[#configuration][Configuration]]
|
|
|
|
* Description
|
|
|
|
This layer provides some integration with the Google Chrome browser.
|
|
|
|
** Feature:
|
|
- Edit text boxes with Emacs using [[http://melpa.org/#/edit-server][edit-server]]
|
|
|
|
* Install
|
|
|
|
** Layer
|
|
|
|
To use this contribution add it to your =~/.spacemacs=
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(setq-default dotspacemacs-configuration-layers '(chrome))
|
|
#+END_SRC
|
|
|
|
** Chrome extension
|
|
|
|
[[http://melpa.org/#/edit-server][edit-server]] is a server that responds to edit requests sent Chrome via the
|
|
Google Chrome extension [[https://chrome.google.com/webstore/detail/edit-with-emacs/ljobjlafonikaiipfkggjbhkghgicgoh][Edit with Emacs]]. You have to install this extension.
|
|
|
|
More information can be found on [[http://www.emacswiki.org/emacs/Edit_with_Emacs][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=.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(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))))
|
|
#+END_SRC
|