May 4, 2021

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

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


Install LISP

  1. CLISP, http://sourceforge.net/projects/clisp/files/clisp/2.48/
    • Download big-zip file.
    • Add to PATH
  2. SBCL, http://sbcl.org/platform-table.html
    • Download v2 64bit. 
    • Install in C:\sbcl and add to PATH.

Install quicklisp

0. save this file in c:\tmp for example, http://beta.quicklisp.org/quicklisp.lisp

1. mkdir c:\opt\quicklisp

2. cd \tmp

3.

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\\")

(ql:add-to-init-file)

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

Install Emacs

1. Get the latest installer version from, 

http://ftp.gnu.org/gnu/emacs/windows/emacs-27/

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")

for CLISP

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

Test

  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)

 

REFERENCE

 

No comments:

Post a Comment