[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how do you strip leading white spaces in c-mode or similar?
From: |
Johna |
Subject: |
how do you strip leading white spaces in c-mode or similar? |
Date: |
Wed, 04 Jul 2007 17:34:31 -0700 |
User-agent: |
G2/1.0 |
Hi, I googled around to no avail.
Basically I am frustrated with the default indentation in c-mode (or
similar modes)
because it inserts unnecessary white space(s) on empty lines.
I want all empty lines to contain nothing but '\n'.
Instead they contain "\n\t" or "\n ".
The preferred solution that I am looking for is a way to inhibit white
space insertion
on empty lines across all modes that have anything to do with
programming languages.
Example:
------------------------------------
int foo(int x)
{
int y = x/2;
// the preceding empty line contains superfluous and annoying white
space!
return y;
}
-------------------------------------
- how do you strip leading white spaces in c-mode or similar?,
Johna <=
- RE: how do you strip leading white spaces in c-mode or similar?, brianjiang, 2007/07/05
- Re: how do you strip leading white spaces in c-mode or similar?, Eli Zaretskii, 2007/07/05
- Re: how do you strip leading white spaces in c-mode or similar?, Peter Lee, 2007/07/05
- Re: how do you strip leading white spaces in c-mode or similar?, Johna, 2007/07/05
- Re: how do you strip leading white spaces in c-mode or similar?, Tassilo Horn, 2007/07/06
- Re: how do you strip leading white spaces in c-mode or similar?, Eli Zaretskii, 2007/07/06
- Re: how do you strip leading white spaces in c-mode or similar?, Nikolaj Schumacher, 2007/07/06
- Re: how do you strip leading white spaces in c-mode or similar?, Eli Zaretskii, 2007/07/06
- Re: how do you strip leading white spaces in c-mode or similar?, Nikolaj Schumacher, 2007/07/08
- Re: how do you strip leading white spaces in c-mode or similar?, Nikolaj Schumacher, 2007/07/06