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
|
** Lisps
|
||||||
*** Common Lisp
|
*** Common Lisp
|
||||||
Use SLIME and Quicklisp for Common Lisp (SBCL), with a convenient
|
Use SLIME and Quicklisp for Common Lisp (SBCL).
|
||||||
binding for =slime-selector=
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package slime)
|
(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"))
|
(load (expand-file-name "~/quicklisp/slime-helper.el"))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
And we also want to enable execution of CL source blocks in Org
|
This assumes that SBCL and Quicklisp, along with Quicklisp's SLIME
|
||||||
mode, which we do by adding an item to [[help:org-babel-load-languages][org-babel-load-languages]].
|
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
|
#+begin_src shell :tangle no
|
||||||
(org-babel-do-load-languages
|
curl -O https://beta.quicklisp.org/quicklisp.lisp
|
||||||
'org-babel-load-languages
|
sbcl --load quicklisp.lisp
|
||||||
'((lisp . t)))
|
|
||||||
#+end_src
|
#+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
|
||||||
=paredit= is generally very useful for balancing parenthesis so we
|
=paredit= is generally very useful for balancing parenthesis so we
|
||||||
want that turned on for all the lisps. Additionally, it's nice to have
|
want that turned on for all the lisps. Additionally, it's nice to have
|
||||||
|
Loading…
x
Reference in New Issue
Block a user