[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: paren-close-dwim: elisp function of a newbie; feedback welcome
From: |
Ted Zlatanov |
Subject: |
Re: paren-close-dwim: elisp function of a newbie; feedback welcome |
Date: |
Sun, 29 Sep 2013 05:36:08 -0400 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
On Fri, 27 Sep 2013 07:51:11 +0200 Andreas Röhler <address@hidden> wrote:
AR> Am 26.09.2013 22:44, schrieb Florian:
>>
>> If you are writing a nested expression, like the following, and '_' is
>> your cursor,
>>
>> { (a * [(b) - (c) _
>>
>> and you have bound ')' to paren-close-dwim (dwim = do what I mean),
>> three succeeding presses of ')' will produce the sequence: ])}. Or in
>> other words: ')' will produce the correct next matching closing
>> bracket regarding the position of your cursor.
AR> Really great. So we may have an electric-close, where C-j does all
remaining before reaching the next line.
This is a great idea (both `paren-close-dwim' and the electric version
of it). IMHO `paren-close-dwim' should go into Emacs, not an external
package, and have first-class key bindings. It's really helpful.
Ted