next up previous
Next: But wait; there's more! Up: emacs Previous: Tags

Running Lisp

C-c l or M-x run-lisp runs lisp in one of your buffers.
If this fails to work, place the following line in your .emacs file in your home directory, rerun emacs and try again:

\begin{displaymath}\mbox{\tt (setq inferior-lisp-program ''gcl'')}\end{displaymath}

Running lisp as an inferior process is especially convenient, since you can now execute commands that are in any of your Lisp files you are editing. If you edit a file with the extention .lisp (putting you in lisp-mode), you can use the following commands:

C-c C-e
Execute the expression near the cursor in the lisp buffer. (This is like typing ``enter'' in SchematiX or Schematik.)
C-c C-r
Execute the region in the lisp buffer.
M-C-\ or M-x indent-region
Properly indents all the code in the region.



Karl W Knight 2003-01-05