all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Increasing Tab Size
@ 2011-09-15 23:24 Kid Programmer
  2011-09-16 13:44 ` Jai Dayal
  2011-09-16 14:53 ` XeCycle
  0 siblings, 2 replies; 3+ messages in thread
From: Kid Programmer @ 2011-09-15 23:24 UTC (permalink / raw)
  To: Help-gnu-emacs


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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Increasing Tab Size
  2011-09-15 23:24 Increasing Tab Size Kid Programmer
@ 2011-09-16 13:44 ` Jai Dayal
  2011-09-16 14:53 ` XeCycle
  1 sibling, 0 replies; 3+ messages in thread
From: Jai Dayal @ 2011-09-16 13:44 UTC (permalink / raw)
  To: Kid Programmer; +Cc: Help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

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 <ned.sanger@gmail.com>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.
>
>
>

[-- Attachment #2: Type: text/html, Size: 1240 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Increasing Tab Size
  2011-09-15 23:24 Increasing Tab Size Kid Programmer
  2011-09-16 13:44 ` Jai Dayal
@ 2011-09-16 14:53 ` XeCycle
  1 sibling, 0 replies; 3+ messages in thread
From: XeCycle @ 2011-09-16 14:53 UTC (permalink / raw)
  To: help-gnu-emacs

Kid Programmer <ned.sanger@gmail.com> writes:

> 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!

Read the manual for CC Mode.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-16 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-15 23:24 Increasing Tab Size Kid Programmer
2011-09-16 13:44 ` Jai Dayal
2011-09-16 14:53 ` XeCycle

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.