Another way to run CLISP from within Emacs:
- If you don't have a .emacs file in your home directory, copy /cs/dept/course/3401/.emacs to it; otherwise merge this file with your existing .emacs.
This loads the commands to run CLISP as an "inferior process", that is, within the Emacs process, whenever Emacs is invoked.
Run emacs or emacs <filename> from the shell prompt.
Running emacs with no file selected or created will give you a scratch buffer that looks something like this:
Enter the command C-x 2 to split the window.
You now have two windows on the scratch buffer.
- Move the cursor to the window in which you want to execute CLISP, and execute M-x run-lisp.
The CLISP prompt > appears in the window.
You now have a window on the scratch buffer which you can use to create and exit text, which you can then paste and execute in the second CLISP window (labelled "inferior-lisp".)
To exit Emacs, enter the command C-x C-c from either window.
(Note: on most keyboards, "C-x" = control-x and "M-x" = esc-x.)
P. H. Roosen-Runge, July 29 2005