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/~kcfelix Blog: http://kaofelix.blogspot.com
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!
2009/7/2 Stefan Blixt
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.
I've updated the wiki now with a link: http://wiki.cs.princeton.edu/index.php/ChucK/Dev/Tools#ChucK_Editing I didn't uploaded a file since I'll be updating the bitbucket repository frequently as I use ChucK and see possible improvements for the mode. I don't know about electro-music. I'll confess that I'm a total newbie on electronic music creation. Right now I'm just an adventurous programmer :) If you could point out where would be the most apropriate place on the forum to announce this I would be very grateful.
Thanks for doing this!
I'm glad you liked! Please, if you use it and test it send feedback to the issue tracker: http://bitbucket.org/kcfelix/emacsd/issues/new/ or just email directly to me. Sugestions are welcome too. Probably experienced users of ChucK will have more to say about usability and desirable features than I do. []'s -- Kao Cardoso Félix Página pessoal: http://www.inf.ufrgs.br/~kcfelix Blog: http://kaofelix.blogspot.com
Hi Kao,
The ChucK forum is here:
http://www.electro-music.com/forum/index.php?f=140
Cheers,
Rogan
On Thu, Jul 2, 2009 at 12:34 PM, Kao Cardoso Felix
2009/7/2 Stefan Blixt
: 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.
I've updated the wiki now with a link: http://wiki.cs.princeton.edu/index.php/ChucK/Dev/Tools#ChucK_Editing I didn't uploaded a file since I'll be updating the bitbucket repository frequently as I use ChucK and see possible improvements for the mode.
I don't know about electro-music. I'll confess that I'm a total newbie on electronic music creation. Right now I'm just an adventurous programmer :) If you could point out where would be the most apropriate place on the forum to announce this I would be very grateful.
Thanks for doing this!
I'm glad you liked! Please, if you use it and test it send feedback to the issue tracker: http://bitbucket.org/kcfelix/emacsd/issues/new/ or just email directly to me. Sugestions are welcome too. Probably experienced users of ChucK will have more to say about usability and desirable features than I do.
[]'s -- Kao Cardoso Félix
Página pessoal: http://www.inf.ufrgs.br/~kcfelix Blog: http://kaofelix.blogspot.com _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
On Thu, Jul 2, 2009 at 2:59 PM, Rogan Carr
Hi Kao,
The ChucK forum is here: http://www.electro-music.com/forum/index.php?f=140
Thanks! I've posted the announcement there. Here's the thread if you're interested: http://electro-music.com/forum/viewtopic.php?p=252166#252166 -- Kao Cardoso Félix Página pessoal: http://www.inf.ufrgs.br/~kcfelix Blog: http://kaofelix.blogspot.com
2009/7/2 Kassen
Now *that's* the spirit!
Welcome on board,
Thanks for the nice reception! Would you folks mind if I open an wiki page to document the mode's features? I'm not really sure if I should ask, since it's a wiki, but anyway I'm new here so I thought it wouldn't hurt to be a little polite :) -- Kao Cardoso Félix Página pessoal: http://www.inf.ufrgs.br/~kcfelix Blog: http://kaofelix.blogspot.com
Kao;
Would you folks mind if I open an wiki page to document the mode's features? I'm not really sure if I should ask, since it's a wiki, but anyway I'm new here so I thought it wouldn't hurt to be a little polite :)
I think anything topical and placed in a spot that makes at least some sense is welcome. It seems that even when we feel like we are getting totally off-topic we somehow come up with a way* *in which it turns out to be very relevant and useful. When you come up with a article titled "What ChucK taught me about soccer strategies" we may need to reconsider but the more I think about that the more I'd like to read it (and I'm not even into soccer). I do believe there is already a section on editors that -amongst other things- covers a EMACS mode, these things are useful, sharing is good. Make yourself at home. Kas.
2009/7/5 Kassen
I do believe there is already a section on editors that -amongst other things- covers a EMACS mode, these things are useful, sharing is good. Make yourself at home.
I used my best judgement and made the following: I've edited http://wiki.cs.princeton.edu/index.php/ChucK/Dev/Tools and removed the separated links for the 3 different emacs modes and replaced with a link to a new page: http://wiki.cs.princeton.edu/index.php/ChucKWithEmacs. On that page I've put the 3 links back and small documentation on how to use my updated mode. Well, but a small accident happened. I *think* the old link of Graham's chuck-mode.el was pointing to an attached file on the previous wiki page. When I moved the link to the new page it broke and now I have no idea how to fix it. I've found the original contents of the file on this email thread: https://lists.cs.princeton.edu/pipermail/chuck-users/2006-February/000375.ht..., but I don't know how to attach it to the page I've created. Is this possible or am I confused on some point here? -- Kao Cardoso Félix Página pessoal: http://www.inf.ufrgs.br/~kcfelix Blog: http://kaofelix.blogspot.com
participants (4)
-
Kao Cardoso Felix
-
Kassen
-
Rogan Carr
-
Stefan Blixt