Difference between revisions of "Edit with Emacs"
Jump to navigation
Jump to search
(fixed a few typos) |
|||
Line 22: | Line 22: | ||
Noted on [[Emacs as a browser's external editor]]. | Noted on [[Emacs as a browser's external editor]]. | ||
+ | |||
+ | [[Category:Third Party Package]] |
Revision as of 09:21, 30 March 2012
Edit with Emacs is extension for the Google Chrome web browser, that let's you edit text areas on a web page with Emacs.
How It Works
- install Edit with Emacs on your chrome
- download edit-server.el to your computer (bundled with extension)
- add following line to .emacs
(add-to-list 'load-path "/where/your/edit-server.el/is")
(require 'edit-server)
(edit-server-start)
- run your emacs as a server as "emacs --daemon"
- 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 as "edit-server-done" to update your change to the textarea
- Warning When you edit textarea, it is likely your change your major mode to mediawiki-mode or other major mode, this will likely bound the c-c c-c to other commmand, then you should use m-x "edit-server-done"
Mechanism
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).
Noted on Emacs as a browser's external editor.