From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anand Dhanakshirur Newsgroups: gmane.emacs.help Subject: how to change the indentation style of emacs Date: Sat, 22 Jan 2011 07:22:05 -0800 (PST) Message-ID: <384843.62270.qm@web30906.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1295775386 27354 80.91.229.12 (23 Jan 2011 09:36:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2011 09:36:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 23 10:36:22 2011 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.69) (envelope-from ) id 1PgwMw-00082j-E6 for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Jan 2011 10:36:22 +0100 Original-Received: from localhost ([127.0.0.1]:36687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgwMv-0002ND-Ig for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Jan 2011 04:36:21 -0500 Original-Received: from [140.186.70.92] (port=40413 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgfI1-00060f-Sz for help-gnu-emacs@gnu.org; Sat, 22 Jan 2011 10:22:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgfI0-0001QZ-Gk for help-gnu-emacs@gnu.org; Sat, 22 Jan 2011 10:22:09 -0500 Original-Received: from web30906.mail.mud.yahoo.com ([68.142.200.159]:27204) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PgfI0-0001QB-8t for help-gnu-emacs@gnu.org; Sat, 22 Jan 2011 10:22:08 -0500 Original-Received: (qmail 62659 invoked by uid 60001); 22 Jan 2011 15:22:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1295709726; bh=Y/v7aNf7ZFJFTVLPMKnHTcIJqRs6E3kk2bGfnKi9nRI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=N29f0W+MtekXo7bt0H59QCANPitQtObwjLHcKH3EVEStrjm7nQ7PaiAdOEQTNYPpt2hPaiIszOm/VAcCTJSiAOXVUjZjnwzCQ8y/ymA+vEPEs4vFmJe5G8+qkw6dbuADaCKDYbwOusIrcf/8oW1QZ9BdDBi0mxB7K0BCM7mA7mk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=lpzQUKAZgArHFLlDwhRlOYfqoUZx510RVtVH5XQtSHfcQPpDCX79lsTUDK+4xPEJwJ1T27j5tVyK/rU5YIoai2TaPGTccpVegRLrTcegTt46P+6qZdFHsUS1jhoo4WQmZ6sc7KSrZ50/qloEmi29uk13Wq1iA7YpUom/kqSIXt0=; X-YMail-OSG: VRmJfEYVM1m7Wnjd1CO0QrzJIE7g_Vq56s0FmuSqbttXVzR Ttm5aavg1uM2eAU2okXZr4PoOLOdceF_hfLrTExUmSaUW2VWOCy3k2jgOO46 8_Qy441ETWKk.FvLuW4Lxu2aRM68KK9V8b9QAtIW.f7LuDyAMekRpOmwG0P0 LC9g3nkXK.fO_HAvrTVENz21jt4lv8pl03BNA3ZGBzsGLkZSzgV4VPTFBvVK Sqob0D7owp5z2lLLMlNBV5wfB0oJmJUuAp23CelNAjA1VrWcFOPbDGJtlGzt CrUzMTmA- Original-Received: from [59.92.138.181] by web30906.mail.mud.yahoo.com via HTTP; Sat, 22 Jan 2011 07:22:05 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Mailman-Approved-At: Sun, 23 Jan 2011 04:25:47 -0500 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:78665 Archived-At: Hi, I am using emacs for c and c++ files. 1. Presently(default), In a C program, after "for" loop, the next line(the next line starting with "{" is indented(shifted) by 2 spaces. I want to change this. I want the next line is not shifted by 2 spaces when i press TAB key.(for indentation) basically Now it is, for (i=0;i<10; i++) { } I want this to be changed as for (i=0; i<10;i++) 2 .One more thing want to do. after opening for loop of if condition, the next line is getting shiftedby 2 spaces. I want the next line to be shifted by 4 spaces. How to do these 2 things?