May 4, 2021

[Note] Lisp, Emacs, Quicklisp, Slime on Windows 10

Goal: Install LISP, quicklisp, slime, Emacs on Windows 10

Install LISP

  1. CLISP,
    • Download big-zip file.
    • Add to PATH
  2. SBCL,
    • Download v2 64bit. 
    • Install in C:\sbcl and add to PATH.

Install quicklisp

0. save this file in c:\tmp for example,

1. mkdir c:\opt\quicklisp

2. cd \tmp


Clisp: run clisp and type: (load "quicklisp.lisp")

SBCL: run sbcl and type: (load "quicklisp")

4. Type below in LISP environment

(quicklisp-quickstart:install :path "C:\\opt\\quicklisp\\")


3. Quit LISP and run again, then type 
(ql:quickload "quicklisp-slime-helper")

Install Emacs

1. Get the latest installer version from,

2. Ctrl-x, Ctrl-f, then enter ~/.emacs

Note that you can only configure either CLISP or SBCL, not both with this method.

3. Enter following and save (Ctrl-x, Ctrl-s)

for SBCL

(setq inferior-lisp-program "/sbcl/sbcl.exe")
(load "/opt/quicklisp/slime-helper.el")


(setq inferior-lisp-program "clisp.exe")
(load "c:\\opt\\quicklisp\\slime-helper.el")


  1. Run emacs and type (M is ALT), M-x slime
  2. New file (Ctrl-x, Ctrl-f), enter some code 
  3. Evaluate (Ctrl-c, Ctrl-c)
  4. REPL (Ctrl-c, Ctrl-z)




No comments:

Post a Comment