Qi + slime + emacs = love

91 views
Skip to first unread message

jrwats

unread,
Sep 8, 2009, 12:19:26 PM9/8/09
to Qilang
I finally got slime + emacs working for Qi. If you're not familiar
with slime it eases common lisp development a lot IMHO.

with SBCL running I ran the following:
(require 'swank)
(load "install.lsp")

now the Qi.core has swank loaded and ready to go. In my ~/.emacs I
made:

(defun qi-init-cmd (port-filename coding-system)
(format "%S\n\n"
`(PROGN
(FUNCALL (READ-FROM-STRING "SWANK:START-SERVER")
,port-filename
:CODING-SYSTEM , (slime-coding-system-cl-name
coding-system)))))

(defun qi ()
(interactive)
;; the below should be the path to your command (script) to start Qi
(slime-start :program "/opt/QiII1.05/Lisp/Qi-Linux-SBCL"
:init 'qi-init-cmd ))
Reply all
Reply to author
Forward
0 new messages