To run an interactive shell, get history for free, and completion (at least hippie-expand if you teach your emacs to use it), you just have to use make-comint.
(defun run-has ()
(interactive)
(make-comint "has" "/path/to/hascheme/script/lis.pl" nil "/path/to/hascheme/script/builtins.scm"))
the last parameter is the argv, you can fill it with whatever you want. In my case, the scheme file with some builtins.
On the hascheme side, I've been experimenting with tail call optimitzation, an improved repl with multiline support and with some cool debugging features. You'll know shortly about them if you follow this little blog of mine.
Well, and here's a screenshot of the comint buffer on hascheme. note the completion thing on the minibuffer.
No hay comentarios:
Publicar un comentario