Using Emacs and the Ilisp package

Ilisp is another scheme package which allows to run the interpreter in an Emacs window. This is a rich package with a lot of nice features. Ilisp comes pre-installed with Xemacs; it has to be installed with FSF Emacs (the last version of Ilisp can be ftp'ed anonymously from ftp.cs.cmu.edu (128.2.206.173) in the /user/ai/lang/lisp/util/emacs/ilisp directory).

To use the Ilisp package with , place the following lines in your .emacs startup file.

(autoload 'run-ilisp              "ilisp" "Select a new inferior LISP." t)
(autoload 'stk                    "ilisp" "Run stk in ILISP." t)
(add-hook 'ilisp-load-hook
          '(lambda ()
             (require 'completer)

             ;; Define STk dialect characteristics
             (defdialect stk "STk Scheme"
               scheme
               (setq comint-prompt-regexp "^STk> ")
               (setq ilisp-program "stk -interactive")
               (setq comint-ptyp t)
               (setq comint-always-scroll t)
               (setq ilisp-last-command "*"))))

After having entered those lines in your .emacs file, you can simply run the interpreter by typing

M-x stk

The Ilisp package comes with a rich documentation which describe how to customize the package.