unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Force spaces instead of tabs
@ 2006-10-10  7:04 Martin
  2006-10-10  8:20 ` ext-chunye.wang
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Martin @ 2006-10-10  7:04 UTC (permalink / raw)


I need to have emacs indent C++ code using only spaces, and no tab
characters.

I edited the options in the Programming/Languages/C group so that:
C Basic Offset is 3
C Tab Always Indent is "always indents"
C Insert Tab Function is "insert-tab"
C Syntactic Indentation is non-nil
C Offsets Alist: substatement-open is 0

In many cases, the indentation is correct, but when I have several
levels of sub-statements, tab characters are inserted anyway. See the
example below. What other options control this behaviour?

void B::e()
{
   if ()
   {
      ;
      if ()
      {
	 ; // tab character at beginning of this line!
      }
      ;
   }
}

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

end of thread, other threads:[~2006-10-10 23:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-10  7:04 Force spaces instead of tabs Martin
2006-10-10  8:20 ` ext-chunye.wang
2006-10-10  8:32   ` Martin
2006-10-10 11:43 ` Hadron Quark
2006-10-10 14:30 ` martin
2006-10-10 23:46 ` Giorgos Keramidas

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).