[bitc-dev] Rough plugins for VIM, emacs
Jonathan S. Shapiro
shap at eros-os.org
Thu Oct 7 10:22:59 PDT 2010
I've done some thuggery to produce very rough-cut BitC plugins for vim and
for emacs. They are now in the tree.
The easiest way to start using the vim plugin is to add the following to
filetype plugin on
You'll want to check what the VIM runtime path is on your system, and of
course you'll need to adjust the path to your repository, but the lines
above worked for me.
Caution! I am NOT a vim user, and definitely not a vim plugin expert. What
you're getting is a quick and dirty attempt after a couple of hours with the
vim developer manual. Hopefully, it's enough to bug you into making it
better and more usable.:-)
In your .emacs (again adjusting paths to suit):
(append '(("\\.bitc$" . bitc-mode)
("\\.bits$" . bitc-mode))
(add-hook 'bitc-mode-hook (lambda ()
This mode is a good bit more complete, but it has an unbelievable number of
rough edges. Some of what I did may turn out to be clever in the four-letter
sense. Any language that uses indentation for meaning runs afoul of many of
the conventions for emacs programming modes.
Most notably: indent-region is not implemented and will certainly mangle
your code horribly.
I'm rather more experienced as an emacs-lisp hacker, but there is a hell of
a lot of state and interactions between modes to consider in emacs, and I
don't have the time to chase most of that down. This, at least, is a start.
As always, report your experiences, annoyances, and pleasant surprises -
preferably to the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bitc-dev