all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Electric braces
Date: Fri, 21 Sep 2012 17:56:19 +0100	[thread overview]
Message-ID: <CALDnm52vxY6q6tGo9XB8uQhG1Biih6Tf8PrctZ8Cp6M0DUgdrQ@mail.gmail.com> (raw)
In-Reply-To: <jwv392cy4q2.fsf-monnier+gnu.emacs.help@gnu.org>

(originally forgot to cc: help-gnu-emacs@gnu.org)

I'd just like to add that autopair:

* is now hosted at github.com/capitaomorte/autopair
* out of the box, does  a bit more than electric-pair-mode, like
deleting 0-width paren pairs when backspacing and helping to keep the
buffer balanced (for example typing 3 opening "{" consecutively makes
"{{{}}}" instead of electric pair's "{{{}".
* can be customized to behave differently in comments and strings,
pair characters, and more

I'm quite positively surprised how electric-pair-mode has evolved
though, but still find it awkward in how it sometimes pairs and
sometimes doesn't.

-- 
João Távora


On Thu, Sep 20, 2012 at 6:38 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> I tried the built-in electric-pair-mode and it does what I want.
>
> I'm glad you like it,
>
>
>         Stefan



  reply	other threads:[~2012-09-21 16:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.9321.1348074746.855.help-gnu-emacs@gnu.org>
2012-09-20  3:47 ` Electric braces Stefan Monnier
2012-09-20 14:58   ` Guido Van Hoecke
     [not found]   ` <mailman.9367.1348153122.855.help-gnu-emacs@gnu.org>
2012-09-20 17:38     ` Stefan Monnier
2012-09-21 16:56       ` João Távora [this message]
2012-09-19 18:22 Dmitry Gutov
  -- strict thread matches above, loose matches on Subject: below --
2012-09-19 17:11 Guido Van Hoecke
2012-09-19 17:17 ` Константин Куликов
2012-09-19 17:33 ` Pascal J. Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALDnm52vxY6q6tGo9XB8uQhG1Biih6Tf8PrctZ8Cp6M0DUgdrQ@mail.gmail.com \
    --to=joaotavora@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.