From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "christopher.morris.cm@googlemail.com" Newsgroups: gmane.emacs.help Subject: Automatic matching parenthesis Date: Sun, 15 Mar 2009 16:31:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237197828 16255 80.91.229.12 (16 Mar 2009 10:03:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2009 10:03:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 11:05:02 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lj9gh-00077W-6F for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 11:04:51 +0100 Original-Received: from localhost ([127.0.0.1]:43767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lj9fL-0008LA-55 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2009 06:03:27 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p20g2000yqi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 87.186.62.213 Original-X-Trace: posting.google.com 1237159902 2800 127.0.0.1 (15 Mar 2009 23:31:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 15 Mar 2009 23:31:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p20g2000yqi.googlegroups.com; posting-host=87.186.62.213; posting-account=jItn1woAAABzuTNC2Lz3a9LANww8V5E4 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030503 Fedora/3.0.7-1.fc10 Firefox/3.0.7, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167665 X-Mailman-Approved-At: Mon, 16 Mar 2009 06:02:56 -0400 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:62967 Archived-At: Hi, added these lines to my .emacs-file, so that parenthesis are automatically matched: (setq skeleton-pair t) (global-set-key (kbd "(") 'skeleton-pair-insert-maybe) (global-set-key (kbd "{") 'skeleton-pair-insert-maybe) But it does not work in cc-mode. Any idea? Regards, Chris