help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Insert ; after closing parenthesis when on it


From: Jiri Pejchal
Subject: Insert ; after closing parenthesis when on it
Date: Wed, 14 Feb 2007 19:44:56 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

Hi,

Netbeans has a following nice feature: when the cursor is on the last
parenthesis of a function call and you press ';', the semicolon is
automatically inserted after the parenthesis. This is very useful
because the opening parenthesis usually inserts also the closing
parenthesis. In emacs after adding arguments you are left with the
cursor on the closing one. Then you have to press right and then ';'.

What I would like to achieve:

object.methodCall(a, b|)
                      ^
                      |
                      |
                      cursor here
                      (actually on the parenthesis)

press ';' and get this:

object.methodCall(a, b);|
                        ^
                        |
                        |
                        cursor here
                        (or even on the next line)


Is this possible in emacs and jdee (or c++ mode)?

Thanks.

--
Jiri Pejchal





reply via email to

[Prev in Thread] Current Thread [Next in Thread]