After installing emacs and attempting to run-lisp
, I get
Searching for program: No such file or directory, lisp
Then, after trying to run lisp again, a new inferior-lisp
buffer opens, but if I try entering anything in, I get:
Output file descriptor of inferior-lisp<1> is closed
Any idea what I should do?
Generally Inferior Lisp means that it is a (often external) Lisp system under control from Emacs. It also does not need to be Emacs Lisp. Usually it is some other Lisp dialect like Common Lisp.
In a fresh Emacs window, type ESC-x lisp-interaction-mode . That will turn your buffer into a LISP terminal; pressing Ctrl+j will feed the s-expression that your cursor (called "point" in Emacs manuals' jargon) stands right behind to LISP, and will print the result.
Example: Step 1: After logging into a CUIT machine, enter "lisp" after the $ shell prompt and then hit <return>. Another way is to run lisp via emacs: Meta-x run-lisp (i.e. hit 'esc' followed by 'x', type "run-lisp" and you'll be in lisp mode from which you can load files of lisp code...)
emacs. d/ . The first lisp file you load you may need to perform M-x slime , which means holding down either Alt or Escape, then hitting the letter 'x'. A prompt will appear at the bottom of the editor (in the minibuffer) where you type "slime" and hit enter.
To run an inferior Lisp process, type M-x run-lisp'. This runs the program namedlisp', the same program you would run by typing lisp' as a shell command, with both input and output going through an Emacs buffer namedlisp'. It look like you do not have an program in your path that is call "lisp".
You should set inferior-lisp-program variable. Be careful 'cos some Lisps expect the core to be specified in the command-line or reside in a current directory (especially if you're on Windows). If you're a newbie and just want to get familiar with lisp there is a built-in Elisp interpreter. Run M-x ielm to get it.
This obviously depends on sbcl. To run an inferior Lisp process, type M-x run-lisp'. This runs the program named lisp', the same program you would run by typing lisp' as a shell command, with both input and output going through an Emacs buffer named lisp '. It look like you do not have an program in your path that is call "lisp".
IELM is an alternative to Lisp Interactive mode, which is the mode of buffer ‘*scratch*’. Start it using ‘M-x ielm’. Then type ‘C-h m’ as usual for more help.
You should set inferior-lisp-program
variable. Be careful 'cos some Lisps expect the core to be specified in the command-line or reside in a current directory (especially if you're on Windows).
If you're a newbie and just want to get familiar with lisp there is a built-in Elisp interpreter. Run M-x ielm
to get it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With