Skip to content

Instantly share code, notes, and snippets.

@okal
Created February 7, 2014 19:38
#!/bin/bash
## You should really be using ZSH, but who am I to judge? :-)
quicklispDir="~/libs/clisp/quicklisp" # Replace this with a directory of your choice
mkdir $quicklispDir -p && cd $quicklispDir
wget http://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp
; This should be run in your SBCL REPL
(quicklisp-quickstart: install) ; This will, by default, create a "~/quicklisp" directory
(load "~/quicklisp/setup.lisp") ; This will make the ql: package available in your REPL
(ql:add-to-init-file) ; This will add ql to your init file, "~/.sbclrc" in this case, so you don't have to load it in subsequent sessions
#!/bin/bash
## This assumes you use pathogen https://github.com/tpope/vim-pathogen
cd ~/.vim/bundle
wget -O slimv.zip http://www.vim.org/scripts/download_script.php?src_id=21253 # Downloads v0.9.12 of Slimv
unzip -d slimv
; This launches a SWANK server at the default port 4005
; Did not work on GNU Clisp for me, hence the SBCL recommendation
(ql:quickload :swank)
(swank:create-server :port 4005 :style :spawn :dont-close t)
" Add the line below to your .vimrc
let g:slimv_swank_cmd ='! xterm -e sbcl --load ~/utils/start-swank.lisp &' "
" NOTE: This is the previously mentioned "start-swank.lisp". Edit the file location as needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment