all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Lee <pete.a.lee@gmail.com>
Subject: Re: left brackets insert both
Date: Fri, 25 Mar 2005 16:39:15 GMT	[thread overview]
Message-ID: <upsxn7k98.fsf@gmail.com> (raw)
In-Reply-To: 1111765040.509327.116280@g14g2000cwa.googlegroups.com

>>>> Shug Boabby writes:

    > when the start of a brace pair was typed, one of [<[{(], the editor
    > would insert the corresponding closing brace and place the cursor
    > in-between. this worked for all text editing modes, but could be turned
    > off when needed.

There is paren-pair-mode with cvs emacs... not sure what version it
was introduced.  It's buffer local, so you'll have to enable it for
any modes you want it.  The list of paired characters is controled by
paren-pair-list.

,----[ C-h f paren-pair-mode RET ]
| paren-pair-mode is an interactive compiled Lisp function in `paren-pair'.
| (paren-pair-mode arg)
| 
| Toggle paren pair mode.
| With a prefix arg, enable paren pair mode iff arg is nonzero.
| 
| [back]
`----

,----[ C-h v paren-pair-list RET ]
| paren-pair-list's value is shown below.
| Automatically becomes buffer-local when set in any fashion.
| 
| Not documented as a variable.
| 
| Defined in `paren-pair'.
| 
| Value:
| (("["
|   #("]" 0 1
|     (paren-paired t)))
|  ("("
|   #(")" 0 1
|     (paren-paired t)))
|  (#("\"" 0 1
|     (paren-paired t))
|   "\""))
| 
| Local in buffer *scratch*; global value is nil
| 
| [back]
`----

      parent reply	other threads:[~2005-03-25 16:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-25 15:37 left brackets insert both Shug Boabby
2005-03-25 15:54 ` David Hansen
2005-03-25 16:45   ` Shug Boabby
2005-03-25 17:49     ` rgb
2005-03-25 18:23       ` Shug Boabby
2005-03-25 19:53         ` rgb
2005-03-25 20:05           ` rgb
2005-03-25 20:19             ` Shug Boabby
2005-03-25 23:00               ` rgb
2005-03-26 12:48     ` David Hansen
2005-03-25 15:54 ` rgb
2005-03-25 16:39 ` Peter Lee [this message]

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=upsxn7k98.fsf@gmail.com \
    --to=pete.a.lee@gmail.com \
    /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.