-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslime-helper.el
32 lines (27 loc) · 1.29 KB
/
slime-helper.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;;; This file was created automatically by the Quicklisp library
;;;; "quicklisp-slime-helper" from the "quicklisp" dist.
(setq quicklisp-slime-helper-dist "quicklisp")
(setq quicklisp-slime-helper-base
(if load-file-name
(file-name-directory load-file-name)
(expand-file-name "~/quicklisp/")))
(defun quicklisp-slime-helper-file-contents (file)
(with-temp-buffer
(insert-file-contents file)
(buffer-string)))
(defun quicklisp-slime-helper-slime-directory ()
(let ((location-file (concat quicklisp-slime-helper-base
"dists/"
quicklisp-slime-helper-dist
"/installed/systems/swank.txt")))
(when (file-exists-p location-file)
(let ((relative (quicklisp-slime-helper-file-contents location-file)))
(file-name-directory (concat quicklisp-slime-helper-base
relative))))))
(let* ((quicklisp-slime-directory (quicklisp-slime-helper-slime-directory)))
(add-to-list 'load-path quicklisp-slime-directory)
(require 'slime-autoloads)
(setq slime-backend (expand-file-name "swank-loader.lisp"
quicklisp-slime-directory))
(setq slime-path quicklisp-slime-directory)
(slime-setup '(slime-fancy)))