From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Alberto_Sim=F5es?= Newsgroups: gmane.emacs.help Subject: Automatically closing braces/parenthesis, etc Date: Sun, 17 Jul 2005 19:43:36 +0100 Message-ID: <42DAA6D8.2030904@alfarrabio.di.uminho.pt> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1121626410 22635 80.91.229.2 (17 Jul 2005 18:53:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2005 18:53:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 17 20:53:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DuEGI-0004TU-BL for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jul 2005 20:53:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuEIB-0001pm-Os for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jul 2005 14:55:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DuEHI-0001kz-9V for help-gnu-emacs@gnu.org; Sun, 17 Jul 2005 14:54:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DuEHC-0001hK-4v for help-gnu-emacs@gnu.org; Sun, 17 Jul 2005 14:54:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuEHA-0001fy-TF for help-gnu-emacs@gnu.org; Sun, 17 Jul 2005 14:54:08 -0400 Original-Received: from [193.136.19.130] (helo=alfarrabio.di.uminho.pt) by monty-python.gnu.org with smtp (Exim 4.34) id 1DuEFo-00036B-5b for help-gnu-emacs@gnu.org; Sun, 17 Jul 2005 14:52:44 -0400 Original-Received: (qmail 31686 invoked by uid 0); 17 Jul 2005 18:43:37 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (192.168.3.210) by 0 with SMTP; 17 Jul 2005 18:43:37 -0000 User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en Original-To: emacs X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27987 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27987 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