[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How do I change Indentation for C Source Code?
From: |
Ben Robinson |
Subject: |
How do I change Indentation for C Source Code? |
Date: |
Mon, 15 Jul 2002 17:11:08 -0700 |
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
- How do I change Indentation for C Source Code?,
Ben Robinson <=