improving the emacs mode
Hi I'm very fond of the (recent) emacs mode. But I think a few improvements could/should be made: 1) On http://wiki.cs.princeton.edu/index.php/ChucK/Dev/Tools the recent mode is pasted into the wiki. I had trouble downloading (or rather copying/pasting) it and getting it to work. A link to an external download would be better. Maybe it could even be part of the chuck download... 2) Indention could/should be improved: a) Loading a chuck file messes up the indention, even if the indention was made by the mode itself. b) Some valid placements of brackets are not handled correctly by the mode, for instance: while(true){ if(true){ // always } else { // never } } c) Indention of comments are a bit strange. If I put "//" at the very beginning of an intented line, the mode will indent the "//"s the the correct place. Maybe it would be better to simply disregard commented out lines when doing indention. 3) Comment-region and Uncomment-region doesn't work. It seems its only a matter of defining a comment character... 4) Syntax highlighting highlights special words if they're used in a variable with underscore. Example: "my_spork_function". I'd be happy to correct some of this myself, but my lisp skills are practically non-existing. I googled for something helpful to get started with elisp, but failed to find anything. If anyone has links to information about making (or hacking) emacs-modes, especially something that would help me address the above mentioned issues, I'd be delighted. -- peace, love & harmony Atte http://www.atte.dk | quartet: http://www.anagrammer.dk http://www.atte.dk/gps | compositions: http://www.atte.dk/compositions
On Wed, 28 Jun 2006 10:51:03 +0200, "Atte André Jensen"
Hi
I'm very fond of the (recent) emacs mode. But I think a few improvements could/should be made:
1) On http://wiki.cs.princeton.edu/index.php/ChucK/Dev/Tools the recent mode is pasted into the wiki. I had trouble downloading (or rather copying/pasting) it and getting it to work. A link to an external download would be better. Maybe it could even be part of the chuck download...
2) Indention could/should be improved: a) Loading a chuck file messes up the indention, even if the indention was made by the mode itself. b) Some valid placements of brackets are not handled correctly by the mode, for instance: while(true){ if(true){ // always } else { // never } } c) Indention of comments are a bit strange. If I put "//" at the very beginning of an intented line, the mode will indent the "//"s the the correct place. Maybe it would be better to simply disregard commented out lines when doing indention.
3) Comment-region and Uncomment-region doesn't work. It seems its only a matter of defining a comment character...
4) Syntax highlighting highlights special words if they're used in a variable with underscore. Example: "my_spork_function".
I'd be happy to correct some of this myself, but my lisp skills are practically non-existing. I googled for something helpful to get started with elisp, but failed to find anything. If anyone has links to information about making (or hacking) emacs-modes, especially something that would help me address the above mentioned issues, I'd be delighted.
Great suggestions, Atte. I'm not much help for lisp tips though. Another thing that would be useful: allowing alt-e (remove) to input more than one shred id. Also, alt-e/alt-a already have useful default keybindings in emacs, in paragraph start/end. Perhaps, alt+shift+e would be better, although it's nice to only have to push two keys. -Scott -- http://www.fastmail.fm - Email service worth paying for. Try it for free
Atte, The original chuck-mode.el was written by Mikael Johansson in 2004. More recently, I picked it up and fixed a few things that weren't working for me: the on-the-fly commands seemed to be broken because of call-process arg differences between the original mode and my version of emacs. I meant to make some more fun changes, but love audicle too much to spend too much time on it yet. My working copy is maintained here: http://ravelite.org/code/chuck/chuck-mode.el The indentation is definitely a little off, I never learned the specifics of how to hack that stuff. As far as guidance for hacking elisp, the elisp-manual is it: http://www.gnu.org/software/emacs/elisp-manual/ best, Graham On Wed, 28 Jun 2006, Atte André Jensen wrote:
Hi
I'm very fond of the (recent) emacs mode. But I think a few improvements could/should be made:
1) On http://wiki.cs.princeton.edu/index.php/ChucK/Dev/Tools the recent mode is pasted into the wiki. I had trouble downloading (or rather copying/pasting) it and getting it to work. A link to an external download would be better. Maybe it could even be part of the chuck download...
2) Indention could/should be improved: a) Loading a chuck file messes up the indention, even if the indention was made by the mode itself. b) Some valid placements of brackets are not handled correctly by the mode, for instance: while(true){ if(true){ // always } else { // never } } c) Indention of comments are a bit strange. If I put "//" at the very beginning of an intented line, the mode will indent the "//"s the the correct place. Maybe it would be better to simply disregard commented out lines when doing indention.
3) Comment-region and Uncomment-region doesn't work. It seems its only a matter of defining a comment character...
4) Syntax highlighting highlights special words if they're used in a variable with underscore. Example: "my_spork_function".
I'd be happy to correct some of this myself, but my lisp skills are practically non-existing. I googled for something helpful to get started with elisp, but failed to find anything. If anyone has links to information about making (or hacking) emacs-modes, especially something that would help me address the above mentioned issues, I'd be delighted.
-- peace, love & harmony Atte
http://www.atte.dk | quartet: http://www.anagrammer.dk http://www.atte.dk/gps | compositions: http://www.atte.dk/compositions _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Graham Coleman wrote:
I meant to make some more fun changes, but love audicle too much to spend too much time on it yet.
I'm yet to try that...
As far as guidance for hacking elisp, the elisp-manual is it: http://www.gnu.org/software/emacs/elisp-manual/
Thanks, I'll have a look... -- peace, love & harmony Atte http://www.atte.dk | quartet: http://www.anagrammer.dk http://www.atte.dk/gps | compositions: http://www.atte.dk/compositions
participants (3)
-
Atte André Jensen
-
Graham Coleman
-
Scott Davidson