>>>> 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]
`----
_______________________________________________
Help-gnu-emacs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to