From 5fb2233b2f9a0b15c6ff11ece4b205c5d8757dcb Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Fri, 1 Jan 2021 00:00:33 +0000 Subject: [PATCH] Describe installation process in Common Lisp section --- config.org | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/config.org b/config.org index c2c4a1e..2eb55f4 100644 --- a/config.org +++ b/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