help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force spaces instead of tabs


From: ext-chunye . wang
Subject: Re: Force spaces instead of tabs
Date: Tue, 10 Oct 2006 08:20:19 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

"Martin" <loveslave@frustratedhousewives.zzn.com> writes:
> 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!
>       }
>       ;
>    }
> }
try (setq indent-tabs-mode nil)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]