Goal: Install LISP, quicklisp, slime, Emacs on Windows 10
Install LISP
- CLISP, http://sourceforge.net/projects/clisp/files/clisp/2.48/
- Download big-zip file.
- Add to PATH
- 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\quicklisp2. 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 typeInstall 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
- Run emacs and type (M is ALT), M-x slime
- New file (Ctrl-x, Ctrl-f), enter some code
- Evaluate (Ctrl-c, Ctrl-c)
- REPL (Ctrl-c, Ctrl-z)
REFERENCE
- https://nabacg.wordpress.com/2012/02/26/emacs-sbcl-slime-common-lisp-environment-on-windows/
- https://grishagin.com/lisp/windows10/2017/01/26/install-lisp-Windows10.html
No comments:
Post a Comment