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: Patrick Drechsler
Subject: Re: how to close braces in all modes automatically?
Date: Thu, 06 Nov 2003 15:49:16 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Hi Jiri,

Jiri Pejchal wrote on 06 Nov 2003 13:46:03 MET:

> 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)

Exactly what I was looking for! Thank you very much,

Patrick
-- 
If your operating system goes down more often
than your girlfriend, then either you need to get
a Catholic girl, or you need to stop running NT.


reply via email to

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