From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Automatically Close Brace in C++ Mode Date: 09 Jun 2003 19:06:05 +1000 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87d6hnboxu.fsf@tiger.rapttech.com.au> References: <3EE3EA36.4F9ECD66@sprint.ca> Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055149009 22479 80.91.224.249 (9 Jun 2003 08:56:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Jun 2003 08:56:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 09 10:56:47 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19PISM-0005q3-00 for ; Mon, 09 Jun 2003 10:56:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19PIRK-0008Nj-Sd for gnu-help-gnu-emacs@m.gmane.org; Mon, 09 Jun 2003 04:55:42 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-NNTP-Posting-Host: ppp532.nsw.padsl.internode.on.net Original-X-Trace: duster.adelaide.on.net 1055148747 ppp532.nsw.padsl.internode.on.net (9 Jun 2003 18:22:27 +0950) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!news.ade.connect.com.au!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:114308 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10802 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10802 >>>>> "shawshank" == shawshank writes: shawshank> Hi Folks, Is there a way to make emacs print a closing shawshank> brace as soon as the opening brace is typed? Its been a while since I've done any C/C++, but I think one of the "electric" options for the mode will do this. Check out the customize-group for the mode and enable some of the electric stuff. Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!