From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Whitfield Newsgroups: gmane.emacs.help Subject: Re: Hi, group. When I type some C code such as: if(1) { a = 0; } The space before 'a=0' is only two characters, how to make it 8 characters ? Thanks. 'Indent' question in C-mode Date: Fri, 19 Jan 2007 13:18:10 +0800 Message-ID: <45b045bb$0$19996$5a62ac22@per-qv1-newsreader-01.iinet.net.au> References: <1169143219.492572.61130@m58g2000cwm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169181635 28973 80.91.229.12 (19 Jan 2007 04:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 04:40:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 05:40:33 2007 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 1H7lYC-00055H-OY for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 05:40:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7lYD-0003ap-NW for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2007 23:40:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 Original-Newsgroups: gnu.emacs.help In-Reply-To: <1169143219.492572.61130@m58g2000cwm.googlegroups.com> Original-Lines: 27 Original-NNTP-Posting-Host: 203.59.9.243 Original-X-Trace: 1169180091 per-qv1-newsreader-01.iinet.net.au 19996 203.59.9.243 Original-Xref: shelby.stanford.edu gnu.emacs.help:144842 Original-To: help-gnu-emacs@gnu.org 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:40446 Archived-At: volunteers@gmail.com wrote: > Hi, group. > When I type some C code such as: > if(1) > { > a = 0; > } > > The space before 'a=0' is automatic two characters, how to make it 8 > characters ? Thanks. > > Vol > This is set by c-basic-offset. Which can be customised or set in your .emacs.el. This sets the basic offset "unit" for all c-mode indenting. Regards Paul