Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Impatient html mode. See your changes in the browser as you type

branch: live-related-b…

This branch is 0 commits ahead and 58 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 impatient-mode.el
Octocat-spinner-32 index.html
Octocat-spinner-32 jquery.js towards a working refresh as you type implementation August 12, 2012
Octocat-spinner-32 loading.html towards a working refresh as you type implementation August 12, 2012
README.md

Impatient Mode

See the effect of your HTML as you type it.

This package requires both simple-httpd and htmlize in order to operate. The simple-httpd webserver runs within emacs to serve up your buffers as you edit them. htmlize is used to send font lock highlighting to clients for non-HTML buffers.

simple-httpd can be installed through MELPA or directly from GitHub.

Add the library to your load path and load it:

(add-to-list 'load-path "~/.emacs.d/impatient-mode")
(require 'impatient-mode)

Also, make sure you enable simple-httpd's optional servlet support

(require 'simple-httpd)
(setq httpd-servlets t)

Publish buffers by enabling the minor mode impatient-mode.

M-x impatient-mode

And then point your browser to http://localhost:8080/imp/, select a buffer, and watch your changes appear as you type!

Except for html-mode buffers, buffer contents will be run through htmlize before sending to clients. This can be toggled at any time with imp-toggle-htmlize.

M-x imp-toggle-htmlize
Something went wrong with that request. Please try again.