Archive for February 2009

Interactive HTML development in Emacs

I accidentally discovered mozrepl today. It’s clearly designed for JavaScript development, but I thought it might be interesting for HTML development as well, and hacked the following together:

(require ‘moz)
(require ‘json)
 
(defun moz-update (&rest ignored)
"Update the remote mozrepl instance"
(interactive)
(comint-send-string (inferior-moz-process)
(concat "content.document.body.innerHTML="
[...]