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

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

Automatically closing braces/parenthesis, etc


From: Alberto Simões
Subject: Automatically closing braces/parenthesis, etc
Date: Sun, 17 Jul 2005 19:43:36 +0100
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Hi

I found in this list archive that if I add the following code to my .emacs, I get automatically closing braces, etc


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


And it is true. Unfortuantely, this does not work under CPerl mode. Probably because CPerl redefines something. Is there any easy way to go around it?

Thanks
Alberto
--
Alberto Simões - Departamento de Informática - Universidade do Minho
                 Campus de Gualtar - 4710-057 Braga - Portugal




reply via email to

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