forked from nickg/swank-chicken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chicken-slime.el
29 lines (22 loc) · 946 Bytes
/
chicken-slime.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
(defvar slime-csi-path "csi"
"Path to csi executable for with Chicken SLIME.")
(setq slime-lisp-implementations
(cons `(chicken (,slime-csi-path)
:init chicken-slime-init)
slime-lisp-implementations))
(defvar swank-chicken-path nil
"Path to swank-chicken.scm. Set to nil to use installed extension.")
(defvar swank-chicken-port 4005
"Port to use for communicating to the swank server.")
(defun chicken-slime-init (file _)
(setq slime-protocol-version 'ignore)
(setq slime-complete-symbol-function 'slime-simple-complete-symbol)
(format "%S\n"
`(begin ,(if swank-chicken-path
`(load ,swank-chicken-path) ; Interpet code for testing
'(require-extension slime)) ; Normal use
(swank-server-start ,swank-chicken-port ,file))))
(defun chicken-slime ()
(interactive)
(slime 'chicken))
(provide 'chicken-slime)