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

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

Re: how to close braces in all modes automatically?


From: Jiri Pejchal
Subject: Re: how to close braces in all modes automatically?
Date: Thu, 6 Nov 2003 12:46:03 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Patrick Drechsler <patrick.drechsler@gmx.net> writes:

> Hi,
> 
> is there a simple way of closing all braces automatically in all
> modes (i.e. HTML, Java, LaTeX, Matlab,...)?

What about this:

(setq skeleton-pair t)
(global-set-key "(" 'skeleton-pair-insert-maybe)
(global-set-key "[" 'skeleton-pair-insert-maybe)
(global-set-key "\"" 'skeleton-pair-insert-maybe)
(global-set-key "'" 'skeleton-pair-insert-maybe)
(global-set-key "{" 'skeleton-pair-insert-maybe)

 

--
Jiri Pejchal


reply via email to

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