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

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

RE: Redefine "(" and ")" keys in every mode


From: Drew Adams
Subject: RE: Redefine "(" and ")" keys in every mode
Date: Sat, 3 Jan 2009 13:57:50 -0800

> I use the following functions (bellow) for redifine the 
> insertions if ( and ). The Idea is: When I type (, I want ()
> inserted. When I type ) and the next character is ), I want
> to just jump over it.

See commands `insert-parentheses' (`M-(' in Emacs Lisp mode),
`move-past-close-and-reindent' (`M-)' in Emacs Lisp mode), `insert-pair', and
`delete-pair'.

See also:
http://www.emacswiki.org/emacs/ElectricPair
http://www.emacswiki.org/emacs/parenthesis.el
http://www.emacswiki.org/emacs/SkeletonMode#toc11





reply via email to

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