unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how do you strip leading white spaces in c-mode or similar?
@ 2007-07-05  0:34 Johna
  2007-07-05  8:49 ` brianjiang
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Johna @ 2007-07-05  0:34 UTC (permalink / raw)
  To: help-gnu-emacs

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;
}
-------------------------------------

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

end of thread, other threads:[~2007-07-08  9:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-05  0:34 how do you strip leading white spaces in c-mode or similar? Johna
2007-07-05  8:49 ` brianjiang
2007-07-05 13:20 ` Eli Zaretskii
2007-07-05 17:48 ` Peter Lee
2007-07-06  1:29   ` Johna
2007-07-06 10:35     ` Tassilo Horn
2007-07-06 12:32       ` Eli Zaretskii
2007-07-06 12:48         ` Nikolaj Schumacher
2007-07-06 15:52           ` Eli Zaretskii
2007-07-08  9:16             ` Nikolaj Schumacher
2007-07-06 12:41     ` Nikolaj Schumacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).