Difference between revisions of "Common Lisp Environment Configuration"

From copec
Jump to: navigation, search
Line 2: Line 2:
 
Development environment for CL including an IDE (Emacs+SLIME), implementation (SBCL), and library management (Quicklisp+ASDF)
 
Development environment for CL including an IDE (Emacs+SLIME), implementation (SBCL), and library management (Quicklisp+ASDF)
  
* Emacs installed via package manager
+
== Configuration (Steps) ==
* SBCL installed via package manager
+
 
* Initial ~/.emacs.d/init.el:
+
=== Emacs installed via package manager ===
 +
 
 +
=== SBCL installed via package manager ===
 +
 
 +
=== Initial ~/.emacs.d/init.el ===
 
<pre>
 
<pre>
 
;; ~/.emacs.d/init.el
 
;; ~/.emacs.d/init.el
Line 17: Line 21:
  
 
</pre>
 
</pre>
* Install SLIME <pre>M-x package-install RET slime RET</pre>
+
 
* Append ~/.emacs.d/init.el:
+
=== Install SLIME ===
 +
<pre>
 +
M-x package-install RET slime RET
 +
</pre>
 +
 
 +
=== Append ~/.emacs.d/init.el ===
 
<pre>
 
<pre>
 
;; Setup load-path, autoloads and your lisp system
 
;; Setup load-path, autoloads and your lisp system

Revision as of 13:30, 18 August 2016

Overview

Development environment for CL including an IDE (Emacs+SLIME), implementation (SBCL), and library management (Quicklisp+ASDF)

Configuration (Steps)

Emacs installed via package manager

SBCL installed via package manager

Initial ~/.emacs.d/init.el

;; ~/.emacs.d/init.el
(require 'cl)
(require 'package) ;; You might already have this line
(add-to-list 'package-archives
             '("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
  ;; For important compatibility libraries like cl-lib
  (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line

Install SLIME

M-x package-install RET slime RET

Append ~/.emacs.d/init.el

;; Setup load-path, autoloads and your lisp system
;; Not needed if you install SLIME via MELPA
;;(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime")
(require 'slime-autoloads)
(setq inferior-lisp-program "/usr/bin/sbcl")

(slime-setup '(slime-fancy slime-xref-browser slime-asdf slime-banner slime-repl slime-indentation slime-fuzzy slime-autodoc slime-presentations slime-presentation-streams))

(setq backup-directory-alist `(("." . "~/.saves")))
(setq backup-by-copying t)