darius / halp

Run programs in the Emacs buffer holding their source, seeing their output inline, interactively.

This URL has Read+Write access

darius (author)
Sat Oct 04 13:54:35 -0700 2008
commit  1e13e8ec2e45e956c8b828fb1dad025d3f2573bb
tree    5072dd5efbf9661ab4176e54bb40c52df36f9c45
parent  4c892c73a01c654fc2ed74f7be30ea11afbc9155
halp /
README
HALP

With Halp, one keystroke executes all specially-marked lines from a
buffer and inserts the results inline. It can do this for source code
in Python, Haskell (literate or illiterate), or sh. This helps you
interactively test your programs as you write them -- like a
read-eval-print loop, but different.

To try it out, first install halp.el as described below. Then visit a
suitable file, (like sample.py, sample.lhs, or sample.sh in this
directory), and hit M-i. These sample files will explain what you can
do and how it works. (Actually only sample.py explains much. But for
the other languages, currently, there's little to explain.)


INSTALLING

Add this line to your .emacs:

  (load-file "/path/to/halp.el")

or just do M-x load-file halp.el.

It will bind M-i in the modes that Halp supports. (Edit halp.el if you
want to change this.)

You will need python-mode, or haskell-mode, etc., installed already
(whichever of these you intend to use with Halp). You will also need
Python >= 2.5 (or maybe an earlier version, but I haven't checked).
This was tested with Emacs 22.


AUTHORS

Darius Bacon <darius@wry.me>
Brandon Moore
Evan Murphy