From eaf031d67613b9af3972bd5409a60492af65ced1 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Thu, 28 Apr 2016 21:33:14 -0500 Subject: [PATCH] SLIME configuration Added a environment variable to the zsh profile Added the SLIME basic config to the emacs init.el --- home/.emacs.d/init.el | 5 +++++ home/.zshrc | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/home/.emacs.d/init.el b/home/.emacs.d/init.el index 4b01631..a858cb5 100644 --- a/home/.emacs.d/init.el +++ b/home/.emacs.d/init.el @@ -59,6 +59,11 @@ ;; Make all files show a linenum (global-linum-mode) +;; Configure SLIME +;; Inferior Lisp interpreter is found at $CL_BIN +(setq inferior-lisp-program (getenv "CL_BIN")) +(setq slime-contribs '(slime-fancy)) + ;; Load my default theme (load-theme 'cyberpunk t) (custom-set-variables diff --git a/home/.zshrc b/home/.zshrc index 98a08c0..b8ca25a 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -39,6 +39,16 @@ fi export GOPATH="$HOME/go" export PATH="$PATH:$HOME/go/bin" +# CL Setup +# if SBCL is installed point to that path +sbcl_bin="$(which sbcl 2> /dev/null | head -n 1)" +if [[ ${sbcl_bin:0:4} == "sbcl" ]]; then + # Handle a case where sbcl is not installed + CL_BIN= +else + CL_BIN=$sbcl_bin +fi + if [ -f "$HOME/.update_dotfiles.sh" ]; then /usr/bin/env sh $HOME/.update_dotfiles.sh fi