Describe installation process in Common Lisp section
This commit is contained in:
parent
3dbc08537a
commit
5fb2233b2f
35
config.org
35
config.org
@ -353,8 +353,7 @@ needs to be set up to install them if they aren't already.
|
||||
|
||||
** Lisps
|
||||
*** Common Lisp
|
||||
Use SLIME and Quicklisp for Common Lisp (SBCL), with a convenient
|
||||
binding for =slime-selector=
|
||||
Use SLIME and Quicklisp for Common Lisp (SBCL).
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package slime)
|
||||
@ -363,15 +362,35 @@ needs to be set up to install them if they aren't already.
|
||||
(load (expand-file-name "~/quicklisp/slime-helper.el"))
|
||||
#+end_src
|
||||
|
||||
And we also want to enable execution of CL source blocks in Org
|
||||
mode, which we do by adding an item to [[help:org-babel-load-languages][org-babel-load-languages]].
|
||||
This assumes that SBCL and Quicklisp, along with Quicklisp's SLIME
|
||||
helper, are installed. Once SBCL is installed, Quicklisp and its
|
||||
SLIME helper can be installed by grabbing [[https://beta.quicklisp.org/quicklisp.lisp][the installer]] and
|
||||
loading it with SBCL.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((lisp . t)))
|
||||
#+begin_src shell :tangle no
|
||||
curl -O https://beta.quicklisp.org/quicklisp.lisp
|
||||
sbcl --load quicklisp.lisp
|
||||
#+end_src
|
||||
|
||||
That will open a REPL with the =quicklisp-quickstart= system
|
||||
loaded. At that REPL, run:
|
||||
|
||||
#+begin_src common-lisp :tangle no
|
||||
(quicklisp-quickstart:install)
|
||||
(ql:add-to-init-file)
|
||||
(ql:quickload "quicklisp-slime-helper")
|
||||
#+end_src
|
||||
|
||||
**** Source blocks
|
||||
To enable execution of CL source blocks in Org mode, add an item
|
||||
to [[help:org-babel-load-languages][org-babel-load-languages]].
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((lisp . t)))
|
||||
#+end_src
|
||||
|
||||
*** Paredit
|
||||
=paredit= is generally very useful for balancing parenthesis so we
|
||||
want that turned on for all the lisps. Additionally, it's nice to have
|
||||
|
Loading…
x
Reference in New Issue
Block a user