Greetings Everyone!
I've have implemented a simple Emacs/XEmacs minor mode for editing Ruby
files with following capabilities:
(*) automatic insertion of 'end' after block level keywords like
'module', 'class', 'def', 'if' (...). Conditional statement modifiers
as well as 'do' are handled correctly.
(*) matching pair completion for delimiters {|(["'`. Matching does not
happen inside strings or comments. Except for curly braces that are
completed whenever using value substitution with the "#{expression}"
syntax.
(*) provides custom support to enable/disable particular completions.
You can download it from
http://shylock.uw.hu/Emacs/ruby-electric.el
Suggestions are welcomed,
Zsombor
My blog: http://deezsombor.blogspot.com
Thanks a lot, I searched for this just last week.
Regards,
Brian
···
On Mon, 31 Jan 2005 23:15:56 +0900 "Dee Zsombor" <Dee.Zsombor@gmail.com> wrote:
Greetings Everyone!
I've have implemented a simple Emacs/XEmacs minor mode for editing Ruby
files with following capabilities:
(*) automatic insertion of 'end' after block level keywords like
'module', 'class', 'def', 'if' (...). Conditional statement modifiers
as well as 'do' are handled correctly.
(*) matching pair completion for delimiters {|(["'`. Matching does not
happen inside strings or comments. Except for curly braces that are
completed whenever using value substitution with the "#{expression}"
syntax.
(*) provides custom support to enable/disable particular completions.
You can download it from
http://shylock.uw.hu/Emacs/ruby-electric.el
Suggestions are welcomed,
Zsombor
My blog: http://deezsombor.blogspot.com
Hi Guillaume!
First of all thanks for reporting this miss beahavioure.
Thanks to you for the code and the fix. It works now 
I am not an emacs elisp expert by any stretch, but how hard would it be
to add the highlighting of if/def/class when the cursor is on the
matching end (and conversely)? The same way as it is done for the braces
{}. I would love to see this happening one day.
Guillaume.
···
On Tue, 2005-02-01 at 09:54 +0100, Dee Zsombor wrote:
On Mon, 31 Jan 2005 18:54:53 -0500, Guillaume Marcais <guslist@free.fr> wrote:
> It seems to load OK, but when I type class or module or any other
> keyword asking for end, I get the following error in the minibuffer:
>
> Wrong number of arguments: #[(arg) "^[v\207" [arg] 1 1345670 "p"], 0
>
> $ emacs --version
> GNU Emacs 21.3.2
>
> Any suggestion?
>
> Guillaume.
>
> On Mon, 2005-01-31 at 23:15 +0900, Dee Zsombor wrote:
> > Greetings Everyone!
> >
> > I've have implemented a simple Emacs/XEmacs minor mode for editing Ruby
> > files with following capabilities:
> >
> > (*) automatic insertion of 'end' after block level keywords like
> > 'module', 'class', 'def', 'if' (...). Conditional statement modifiers
> > as well as 'do' are handled correctly.
> >
> > (*) matching pair completion for delimiters {|(["'`. Matching does not
> > happen inside strings or comments. Except for curly braces that are
> > completed whenever using value substitution with the "#{expression}"
> > syntax.
> >
> > (*) provides custom support to enable/disable particular completions.
> >
> > You can download it from
> > http://shylock.uw.hu/Emacs/ruby-electric.el
> >
> > Suggestions are welcomed,
> > Zsombor
> >
> > My blog: http://deezsombor.blogspot.com
> >
> >
>
>