Hello,
I become interested in Qi recently, and I've just finished installing
qi-mode.el. It's actually pretty easy.
(Note: my environment is Mac OS X, Emacs 22.1.1 and SBCL 1.0.12.)
1. Download qi-mode.el and save it somewhere. I've saved it to the
usual Unix place ~/elisp/qi-mode.el, where ~ stands for home directory
- /Users/victor in my case.
2. In your .emacs (or however emacs initialization file is called on
emacs) include the following lines (adjust them accordingly to your
environment):
(add-to-list 'load-path "~/elisp/") ; make sure that the directory
where qi-mode.el lives is in the emacs lisp path
(require 'qi-mode) ; require the qi-mode library
(setf inferior-qi-program "/Users/victor/bin/qi") ; path to the qi
launcher
/Users/victor/bin/qi is a simple shell script that runs qi for me:
#!/bin/bash
sbcl --core /Users/victor/Qi\ 9.1/Qi.core
you should probably use whatever windows .bat file you use to launch
Qi.
3. Now, once qi-mode.el is installed, it should be turned
automatically every time your visit .qi file. Once there, run M-x
inferior-qi, and it will run a Qi interpretor in a separate window.
Now, once in your source file, you can go to the end of the form and
run C-x e (evaluate) - it will evaluate the form, as if you've entered
it yourself in the *inferior-qi* buffer.
Hope that helps,
Victor.