Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Latest commit

 

History

History
65 lines (40 loc) · 1.43 KB

README.org

File metadata and controls

65 lines (40 loc) · 1.43 KB

Webmacs

Description

Webmacs is a package which lets other people watch you editing stuff in Emacs on every modern web browser.

Usage

Server Side

The server is written in Clojure. Currently no pre-built jar is available, so you need leiningen.

$ git clone https://github.com/the-kenny/webmacs.git
$ cd webmacs
$ lein run

This will run a local webserver on port 3000. The entry point for Emacs is port 9881.

You can change these defaults via environment variables EMACS_PORT and WEB_PORT.

Emacs Side

  1. Put webmacs.el somewhere in your load path
  2. Load webmacs.el
(require 'webmacs)
  1. Connect to Server
M-x webmacs-open-connection RET RET RET

(Optional: Specify other values for host and port)

  1. Enable webmacs-mode in every buffer which you want to publish
M-x webmacs-mode

Browser

Published buffers are referenced via their name:

http://localhost:3000/emacs/<buffer-name>

Future Goals

Webmacs is in pretty rough shape. A major feature missing is font-lock (syntax highlighting), and many other convenient things like listing available buffers isn’t implemented yet.

See TODO.org for things that needs to be done.

License

Copyright © 2012 Moritz Ulrich

Distributed under the Eclipse Public License, the same as Clojure.