Difference between revisions of "Edit with Emacs"

From WikEmacs
Jump to navigation Jump to search
(added brief description and pointer to Emacs as a browser's external editor.)
Line 5: Line 5:
 
|source=https://github.com/stsquad/emacs_chrome
 
|source=https://github.com/stsquad/emacs_chrome
 
}}
 
}}
 +
 +
== How It Works ==
 +
# install Edit with Emacs on your chrome
 +
# download edit-server.el to your computer
 +
# add following line to .emacs
 +
<source lang="lisp">
 +
(add-to-list 'load-path "/where/your/edit-server.el/is")
 +
(require 'edit-server)
 +
(edit-server-start)
 +
</source>
 +
# your will find a button at the bottom of textarea when you browse the webpage
 +
# when you press the button a emacs frame will show up, with text already in the textarea
 +
# when you have done, press c-c c-c to update your change to the textarea
  
 
Noted on [[Emacs as a browser's external editor]].
 
Noted on [[Emacs as a browser's external editor]].
  
 
Chrome extension [https://chrome.google.com/webstore/detail/ljobjlafonikaiipfkggjbhkghgicgoh Edit with Emacs] uses its own '''Edit Server''' rather than Emacsclient because Chrome's security policy does not allow extensions to spawn new processes. The extension allows the user to edit text in Emacs and send the results to the browser textarea with {{CommandKeys|C-x #|edit-server-done}}.
 
Chrome extension [https://chrome.google.com/webstore/detail/ljobjlafonikaiipfkggjbhkghgicgoh Edit with Emacs] uses its own '''Edit Server''' rather than Emacsclient because Chrome's security policy does not allow extensions to spawn new processes. The extension allows the user to edit text in Emacs and send the results to the browser textarea with {{CommandKeys|C-x #|edit-server-done}}.

Revision as of 04:28, 29 March 2012

Edit with Emacs
Description Edit text areas via Chrom(ium) browsers
Author name of author
Maintainer Alex Bennée
Source https://github.com/stsquad/emacs_chrome

How It Works

  1. install Edit with Emacs on your chrome
  2. download edit-server.el to your computer
  3. add following line to .emacs
(add-to-list 'load-path "/where/your/edit-server.el/is")
(require 'edit-server)
(edit-server-start)
  1. your will find a button at the bottom of textarea when you browse the webpage
  2. when you press the button a emacs frame will show up, with text already in the textarea
  3. when you have done, press c-c c-c to update your change to the textarea

Noted on Emacs as a browser's external editor.

Chrome extension Edit with Emacs uses its own Edit Server rather than Emacsclient because Chrome's security policy does not allow extensions to spawn new processes. The extension allows the user to edit text in Emacs and send the results to the browser textarea with [C-x #] (or M-x edit-server-done).