Cool! I haven't used emacs for a while, but this might make me start again.
If you'd like I think it would be great if you wanted to post this in a
thread at electro-music.com, and maybe also somewhere in the ChucK wiki (if
you can add files there) - for posterity.
Thanks for doing this!
/Stefan
On Thu, Jul 2, 2009 at 4:07 PM, Kao Cardoso Felix
Hello folks,
I've just discovered and started learning ChucK and It's very neat. As I'm an Emacs user I downloaded the emacs mode for editing ChucK files. It was rather old and was missing some functionality so I've made an update.
http://bitbucket.org/kcfelix/emacsd/src/tip/my-lisp/chuck-mode.el
I've changed the syntax highlight to be more consistent with how other languages are highlighted inside Emacs and added all keywords, types and library functions listed on the documentation. Class and method name highlighting is not working yet, but I plan on adding it soon.
Code to run the ChucK VM as an inferior process inside Emacs was commented because it wasn't working before. I've made it work and changed some keybings. Now it work like this:
C-c C-c inside a ChucK buffer will send the buffer code to the VM. If there's no VM process one will be created. C-c C-d remove a shred from the VM by a numeric id (is there other ways to identify shreds besides numbers?) C-c C-r replace a shred with the code on the current buffer.
I also added support for easy customization for the path of the chuck executable, so you don't have to edit lisp code to change it.
Well, I'm planning to update it frequently to make it better according to my use of it, but if there's anyone using Emacs for ChucK and want to give some advice it would be very nice :)
[]'s
-- Kao Cardoso Félix
Página pessoal: http://www.inf.ufrgs.br/~kcfelixhttp://www.inf.ufrgs.br/%7Ekcfelix Blog: http://kaofelix.blogspot.com _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!