From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Skilbeck Newsgroups: gmane.emacs.help Subject: Re: Auto-indentation Date: Sat, 21 Apr 2012 09:39:02 +0100 Message-ID: <20120421083901.GA3186@mark-laptop> References: <4F915D2A.1040607@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1334997555 1757 80.91.229.3 (21 Apr 2012 08:39:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2012 08:39:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Richard H Lee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 21 10:39:14 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SLVqb-0007Hg-HV for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Apr 2012 10:39:13 +0200 Original-Received: from localhost ([::1]:55971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLVqa-0004ms-VO for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Apr 2012 04:39:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLVqU-0004mE-U4 for help-gnu-emacs@gnu.org; Sat, 21 Apr 2012 04:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLVqS-00032i-QA for help-gnu-emacs@gnu.org; Sat, 21 Apr 2012 04:39:06 -0400 Original-Received: from li357-97.members.linode.com ([178.79.188.97]:48054 helo=mail.iammark.us) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLVqS-00032Z-KO for help-gnu-emacs@gnu.org; Sat, 21 Apr 2012 04:39:04 -0400 Original-Received: from mail.iammark.us (host86-141-74-227.range86-141.btcentralplus.com [86.141.74.227]) by mail.iammark.us (Postfix) with ESMTPSA id A4AA2B170; Sat, 21 Apr 2012 09:39:02 +0100 (BST) Content-Disposition: inline In-Reply-To: <4F915D2A.1040607@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 178.79.188.97 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84546 Archived-At: On Fri, Apr 20, 2012 at 01:57:14PM +0100, Richard H Lee wrote: > I would like to use auto-indentation in emacs. > > When I C-j in C syntax it add an extra indent if it is expecting an > extra code block. It also does so if I type an opening curly > bracket. > > E.g > > for(;;;) > { > > I just want emacs to keep the indent of the line I'm on, that is > all. I don't need emacs to predict indentation for me. > > Richard See c-set-style. Typically bound to "C-c ." - mgsk.