[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I change Indentation for C Source Code?
From: |
Todd Kokoszka |
Subject: |
Re: How do I change Indentation for C Source Code? |
Date: |
Tue, 16 Jul 2002 00:42:52 +0200 |
User-agent: |
Mutt/1.2.5.1i |
There are a few sections in the info manual that correspond to what you
want : Indentation for Programs, Editing Programs, and Indentation. Emacs
is very flexible with that.
Todd
On Mon 15 Jul 2002 at 17:11:08 -0700, Ben Robinson wrote:
>
> Hello,
>
> When the Major mode is either (C) or (C++), every line of C source code
> begins with 2 spaces. Any tabs or indentation begin from that point.
>
> When I open source code created with emacs, the code is positioned 2
> spaces in, 6 spaces in, 10 spaces in, etc... The formula would be
> (spaces = 4x+2) where 'x' is the number of tabs.
>
> When I open source code created with a Windows editor, the code is
> positioned 4 spaces in, 8 spaces in, 12 spaces in, etc... The formula
> would be (spaces = 4x) where 'x' is the number of tabs.
>
> I need to edit the emacs code to not insert the 2 spaces at the front of
> every line and instead add either no spaces or a single tab to make my
> code compatible between both editors.
>
> How can I do this?
>
> Thank you very much,
>
> Ben Robinson
> Belobox Networks
>
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
>