From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jai Dayal Newsgroups: gmane.emacs.help Subject: Re: Increasing Tab Size Date: Fri, 16 Sep 2011 09:44:11 -0400 Message-ID: References: <32475717.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016367faf715ca07f04ad0f3126 X-Trace: dough.gmane.org 1316180688 30523 80.91.229.12 (16 Sep 2011 13:44:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2011 13:44:48 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: Kid Programmer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 16 15:44:44 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R4Yii-0002Ge-C3 for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Sep 2011 15:44:44 +0200 Original-Received: from localhost ([::1]:53346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4Yih-0002q3-SX for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Sep 2011 09:44:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4Yid-0002pY-2f for Help-gnu-emacs@gnu.org; Fri, 16 Sep 2011 09:44:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4YiX-00030Y-Al for Help-gnu-emacs@gnu.org; Fri, 16 Sep 2011 09:44:39 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:35783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4YiX-00030A-6O for Help-gnu-emacs@gnu.org; Fri, 16 Sep 2011 09:44:33 -0400 Original-Received: by wwp14 with SMTP id 14so4027214wwp.30 for ; Fri, 16 Sep 2011 06:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=kZXZl3pGLJs36Sp/sutYvHM6B3UkVvRDE8BHh3gE/Ww=; b=JGZ0oEgTTtz2KXe3bSCTpbBt/ZUwFGhJH3Iu32uzMr75SyIAV+hEPJVthDjqxwA/sA pl0FDwN1WZlvpgrQ3jmXepImwZgqFt3AOS5lyOmCqa55piQiLqB/ZjpY/U6nkHlUodVn pK4bsQqer+3XYUMw7XdT9Spzg+di+9I+c4XAg= Original-Received: by 10.216.185.207 with SMTP id u57mr733247wem.109.1316180671110; Fri, 16 Sep 2011 06:44:31 -0700 (PDT) Original-Received: by 10.216.45.145 with HTTP; Fri, 16 Sep 2011 06:44:11 -0700 (PDT) In-Reply-To: <32475717.post@talk.nabble.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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:82253 Archived-At: --0016367faf715ca07f04ad0f3126 Content-Type: text/plain; charset=ISO-8859-1 You can set different default C styles (I use strousoup, for example instead of BSD style) in .emacs (setq c-default-style "bsd" c-basic-offset 4) and that will set it every time. http://borkware.com/quickies/one?topic=emacs Jai On Thu, Sep 15, 2011 at 7:24 PM, Kid Programmer wrote: > > Hi! I've recently switched from GVim to Emacs, and at the moment I only > have > one qualm. When I'm writing C code Emacs autoindents by two spaces, when > the normal is usually four. How can I increase it to four? Thank you! > -- > View this message in context: > http://old.nabble.com/Increasing-Tab-Size-tp32475717p32475717.html > Sent from the Emacs - Help mailing list archive at Nabble.com. > > > --0016367faf715ca07f04ad0f3126 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You can set different default C styles (I use strousoup, for example instea= d of BSD style)

in .emacs
(setq c-default-style "bsd&qu=
ot;
      c-basic-offset 4)

and that will set it every time.

http://borkware.com/= quickies/one?topic=3Demacs

Jai


On Thu, Sep 15, 2011 at 7:24 PM, Kid Programmer <ned.sanger@gmail.com> wrot= e:

Hi! =A0I've recently switched from GVim to Emacs, and at the moment I o= nly have
one qualm. =A0When I'm writing C code Emacs autoindents by two spaces, = when
the normal is usually four. =A0How can I increase it to four? =A0Thank you!=
--
View this message in context: http://old.nabble.com/I= ncreasing-Tab-Size-tp32475717p32475717.html
Sent from the Emacs - Help mailing list archive at Nabble.com.



--0016367faf715ca07f04ad0f3126--