by dustingetz · 14y ago · 0 comments
inferior-lisp makes all the problems bpython is trying to solve, irrelevant.
[1] example: http://vimeo.com/22798433 (4 mins)
EDIT: here is a snippet
(defun py-execute-line (&optional async)
"Send the current line to the inferior python process using py-execute-region."
(interactive "P")
(save-excursion
(end-of-line)
(let ((end (point)))
(beginning-of-line)
(py-execute-region (point) end async)))
)
That's the py-execute-line function, which is sending code to py-execute-region defined in python-mode (http://bazaar.launchpad.net/~python-mode-devs/python-mode/py...).For some reason the default python mode in emacs is python.el rather than python-mode.el. So you probably want to start by using python-mode.