mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
Install Emacs and Common Lisp for MacOS
This commit is contained in:
parent
ed81abfb5a
commit
4ce49ebe4d
2 changed files with 45 additions and 1 deletions
3
LEARN.md
3
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)
|
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 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
|
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
|
(like in a day not weeks or years) and to give you the all important
|
||||||
|
|
|
||||||
43
MACOS.md
Normal file
43
MACOS.md
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue