[slim-vim] HOWTO in progress
James Fleming
lisp at electronic-quill.net
Fri Jul 21 19:45:47 CDT 2006
> > Now that I've gotten it running, I figured it would be worthwhile to
> > document the steps as a more complete version of Brad's
> > instructions.
>
> Great! Thanks!
Hey, it's something useful that I can contribute, to follow my goofs and
dumb questions :)
Per Brad's suggestion, I'll add it to the wiki, plus your additions.
Most likely some time today.
> > On the subject of ecl-slime, I'm going to try asdf-packaging it to
> > see if that removes the need to start vim in its directory.
>
> It won't, unless asdf does something really funky. ecl-slime.lisp has
> several forms along the lines of
>
> (load "foo")
It does, but my version now has:
(defun load-slime-file (filename)
(load (make-pathname :defaults "/opt/pkgs/lisp-asdf/ecl-slime/"
:name filename)))
(load-slime-file "interface")
...
I've put that in both ecl-slime.lisp and slime.lisp, where it loads
"glue". I'm sure there's a more elegant way of passing the path to both
of these, but it works pretty effectively for now.
This way, the files are loaded properly regardless of where it's called
from, and the path only needs to be edited twice (once for each defun)
to suit the environment. Yes, I know it looks like a strange place to
put that stuff, but it makes perfect sense in context.
> Or maybe you plan to delete those LOADs and let ASDF do it. That'd
> work. :)
That looked like a good plan to me, but I haven't played with ecl+vim
yet, so I started with something that I knew would work.
Transforming it into an asdf package is next. If that works, it'll be
much cleaner.
Cheers,
James
[*sigh* One day I'll learn vim's hooks, and stop forgetting to change
the "From: " address.]
--
Stupidity killed the cat.
Curiosity was framed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.lispniks.com/pipermail/slim-vim/attachments/20060722/42747cc8/attachment.bin
More information about the slim-vim
mailing list