From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Rasmussen Newsgroups: gmane.emacs.help Subject: C++/Java/C modes Date: Wed, 19 Nov 2003 11:38:53 +0100 Organization: UNI-C Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1069238989 18360 80.91.224.253 (19 Nov 2003 10:49:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2003 10:49:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 19 11:49:46 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 1AMPu6-0002CT-00 for ; Wed, 19 Nov 2003 11:49:46 +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 1AMQpM-0003qf-A1 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Nov 2003 06:48:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.net.uni-c.dk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: oek.dk Original-X-Trace: news.net.uni-c.dk 1069238104 30338 62.61.154.25 (19 Nov 2003 10:35:04 GMT) Original-X-Complaints-To: usenet@news.net.uni-c.dk Original-NNTP-Posting-Date: Wed, 19 Nov 2003 10:35:04 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en, da Original-Xref: shelby.stanford.edu gnu.emacs.help:118430 Original-To: help-gnu-emacs@gnu.org 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:14371 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14371 Two questions: 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. Example: int main() { std::cout << "Hello, world!" << std::endl; 2) How can I change the auto indentation style so that instead of if (whatever) I guess the last question is about using the if (whatever) { blabla } style. I (want to) use the if (whatever) { blabla } style. Help? Maybe I should just give in and go with the flow and use the short style. /David