Another way to run CLISP from within Emacs:

  1. 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.

  2. 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:

  3. Enter the command C-x 2 to split the window.

    You now have two windows on the scratch buffer.

  4. Move the cursor to the window in which you want to execute CLISP, and execute M-x run-lisp.

    The CLISP prompt [1]> 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".)

  5. To exit Emacs, enter the command C-x C-c from either window.
  6. (Note: on most keyboards, "C-x" = control-x and "M-x" = esc-x.)

    P. H. Roosen-Runge, July 29 2005