How to Install Lisp on Windows 10
from Jonathan Fischer and YouTube
Download
- Common LISP.
- Emacs – editor / “IDE”.
- Quicklisp – key LISP library that allows to download and maintain other libraries with ease.
Install
- Install Emacs.
- Unpack contents of Emacs archive.
- Add Emacs directory (e.g.
C:\ntemacs24\bin
) to your PATH system variable.
- Create HOME directory.
This is necessary to avoid problems with home directory recognition by lisp.- Create the
C:\HOME
directory. - Add a new system variable with Name
HOME
and ValueC:\HOME
.
- Create the
- Install CLISP.
- Create an easy-to-reach, easy-to-use directory. I use
C:\lisp
. - Install CLISP in that directory.
NOTE: the latest version at the time of writing is 2.49, but I’m having trouble getting it to load SLIME properly (see below), so version 2.48 it is. (fileclisp-2.48-win32-mingw-big.exe
). - IMPORTANT:
Installer of the version 2.48 is faulty.
To fix this problem, copysvm.dll
out ofclisp-2.48/libsvm
directory intoclisp-2.48/full
.
- Create an easy-to-reach, easy-to-use directory. I use
- Install quicklisp.
- Place
quicklisp.lisp
intoC:\lisp
- Run CLISP and execute the following:
(load "C:/lisp/quicklisp.lisp") (quicklisp-quickstart:install :path "C:/lisp/quicklisp/") (ql:add-to-init-file)
- Place
-
Install SLIME – Superior Lisp Interaction Mode for Emacs, an Emacs extension to make lisp development seamless.
In the CLISP console execute:(ql:quickload "quicklisp-slime-helper")
- Configure Emacs.
- Launch Emacs.
- Type
Ctrl-x
, thenCtrl-f
. - Enter
~/.emacs
in the prompt at the bottom of the window. - Add the following lines to the file:
(setq inferior-lisp-program "clisp.exe") (load "C:/lisp/quicklisp/slime-helper.el")
- Type
Ctrl-x
, thenCtrl-s
to save the file.