4 ms·
Are you using the CL REPL directly on a terminal emulator? I do not type expressions directly into the REPL often. I do sometimes but not often. Instead I se
by susam 3y ago
Are you using the CL REPL directly on a terminal emulator? I do not type expressions directly into the REPL often. I do sometimes but not often. Instead I send expressions right from the editor to the REPL. The REPL itself is available as a separate buffer in the editor. How this is done depends on the editor/IDE. Some examples:
• With Emacs + SLIME, we can type C-M-x (evaluate current top-level form) or C-x C-e (evaluate the expression before the cursor).
• With Vim + Slimv, it is ,e and ,d respectively.
• Yet another popular option is Vim + Vlime in which case the key sequences are \ss and \st instead.
I have written two guides to explain how to create such a development environment from scratch and get started with such a setup:
• https://github.com/susam/emacs4cl https://github.com/susam/emacs4cl
• https://susam.net/lisp-in-vim.html https://susam.net/lisp-in-vim.html
There are commercial implementation + IDEs too which according to many people provide even better integrated development experience. The most popular among them is perhaps LispWorks. I use Emacs + SLIME myself.
- ryan-duve 3y agoYes, I was directly typing in the REPL. I think Slimv may have been the thing I'm missing. When I'm back to my laptop I will give it a shot. Thanks!
- lispm 3y agoI would type into a REPL, but not in a terminal. Typically one would run a REPL inside an editor or something similar. The tool to run a REPL is usually called a "Listener" in Lisp. For example I would use GNU Emacs, call SLIME and use a SLIME REPL. Lisp development in a terminal, without an editor, is not so helpful.
- ryan-duve 3y agoIt's been a week so I can't edit my other response to this, but yes, Slimv was what I was missing. I read your second link and followed the instructions and am now able to actually learn this language. Thank you for sharing. For anyone else that knows Vim but can't seem to get a good CL environment going, read https://susam.net/lisp-in-vim.html https://susam.net/lisp-in-vim.html