From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: C++/Java/C modes Date: 19 Nov 2003 16:09:26 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1069251063 11897 80.91.224.253 (19 Nov 2003 14:11:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2003 14:11:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 19 15:11:01 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AMT2q-0005FI-00 for ; Wed, 19 Nov 2003 15:11:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMTz9-0005Zl-Jv for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Nov 2003 10:11:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AMTy6-0005H7-SW for help-gnu-emacs@gnu.org; Wed, 19 Nov 2003 10:10:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AMTx2-0004N3-Aj for help-gnu-emacs@gnu.org; Wed, 19 Nov 2003 10:09:35 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AMTwv-00049P-MC for help-gnu-emacs@gnu.org; Wed, 19 Nov 2003 10:08:58 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from David Rasmussen on Wed, 19 Nov 2003 11:38:53 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14375 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14375 > From: David Rasmussen > Newsgroups: gnu.emacs.help > Date: Wed, 19 Nov 2003 11:38:53 +0100 > > 1) How do change it so that when I press enter on a line, the cursor is > already at the natural indentation point with spaces inserted before. Bind RET to the function newline-and-indent. > I guess the last question is about using the > > if (whatever) { > blabla > } > > style. I (want to) use the > > if (whatever) > { > blabla > } > > style. You will find the answer to this in the CC Mode manual, which is part of a standard Emacs distribution. There's a chapter there which explains how to customize indentation interactively.