diff --git a/LEARN.md b/LEARN.md index a596f12..8868769 100644 --- a/LEARN.md +++ b/LEARN.md @@ -9,8 +9,9 @@ LLLL EEEE A A R R N N CCCC LLLL OOOOO GGGGG COMMON-LISP "The Tutorial" Series (Google Doc Links) +* [Install Common-Lisp for MacOS](MACOS.md) * [Install Common-Lisp for Win64](WINDOWS.md) -* [Install Common-Lisp for Linux/Mac](https://lisp-lang.org/learn/getting-started/) +* [Install Common-Lisp for Linux](https://lisp-lang.org/learn/getting-started/) The tutorial's goal is to get you writing real Lisp programs, quickly (like in a day not weeks or years) and to give you the all important diff --git a/MACOS.md b/MACOS.md new file mode 100644 index 0000000..7387e4f --- /dev/null +++ b/MACOS.md @@ -0,0 +1,43 @@ + +## Installing Common Lisp + Emacs + Slime on MacOS (all platforms) + +1. Install Emacs for Msc OS from - https://emacsformacosx.com/ + +2. [optional] Add Emacs to your system's path by creating a +file /etc/paths.d/emacs with: +``` +/Applications/Emacs.app/Contents/MacOS +``` + +3. Install Homebrew - https://brew.sh/ +``` +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +``` + +4. Install a Common Lisp compiler, ie. sbcl +``` +brew install sbcl +``` + +5. Install QuickLisp +``` +curl -o /tmp/ql.lisp http://beta.quicklisp.org/quicklisp.lisp +sbcl --no-sysinit --no-userinit --load /tmp/ql.lisp \ + --eval '(quicklisp-quickstart:install :path "~/.quicklisp")' \ + --eval '(ql:add-to-init-file)' \ + --quit +``` + +6. Install Slime +``` +sbcl --eval '(ql:quickload :quicklisp-slime-helper)' --quit +``` + +7. Modify or create ~/.emacs.d/init.el with the lines +``` +(load (expand-file-name "~/.quicklisp/slime-helper.el")) +(setq inferior-lisp-program "sbcl") +``` + +8. You can now start emacs graphically or if did option 2 from terminal +and then use M-x slime