From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.help Subject: Re: Setting auto-indentation of braces Date: Thu, 19 Feb 2009 20:31:37 +0900 Organization: NEC Electronics Message-ID: References: <4991527f$0$14913$9b536df3@news.fv.fi> <499936d0$0$14920$9b536df3@news.fv.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235043700 16882 80.91.229.12 (19 Feb 2009 11:41:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2009 11:41:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 19 12:42:55 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 1La7Ic-0001QT-UJ for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Feb 2009 12:42:39 +0100 Original-Received: from localhost ([127.0.0.1]:58239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1La7HI-0002CL-R1 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Feb 2009 06:41:16 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net ik9wiHXHXliQyb4jmbfQQAd4+kG8qOnMatWKKOqtno0q/fwfXv Cancel-Lock: sha1:bucaUMPd2LHr2DRr2Kr3WktAu9s= sha1:KLHfwUAH6ncgr2CuKD4mpyWOkz0= System-Type: x86_64-unknown-linux-gnu Blat: Foop Original-Xref: news.stanford.edu gnu.emacs.help:166892 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:62199 Archived-At: What you want to do is just ask emacs "What command is the { key bound to", and then bind your new key to the same command. To see what the { key is bound to, you can use the "describe-key-briefly" command, normally bound to "C-h c" (of course you should do it while in the C file's buffer): C-h c { (I see in my emacs, it's bound to "c-electric-brace" in c-mode) Emacs has a lot of useful commands for getting information, most of which start with "C-h" (do C-h C-h to see more). -Miles -- I'm beginning to think that life is just one long Yoko Ono album; no rhyme or reason, just a lot of incoherent shrieks and then it's over. --Ian Wolff