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

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

Re: Indentation settings problems


From: Bernardo
Subject: Re: Indentation settings problems
Date: Wed, 23 Sep 2009 08:54:07 +1000
User-agent: Thunderbird 2.0.0.23 (X11/20090812)



TriKri said the following on 09/23/09 04:02:
I still want to change the indentation. I added the code (setq-default
tab-width 4 indent-tabs-mode t) to the file (\AppData\Roaming\.emacs in my
user folder in windows) as you said, but it doesn't work. What can be wrong?
And why can't I change it through Options->Customize Emacs->Top-level
Customization Group? To me it seems like something is wrong if nothing of
this works. What does it sound like to you?

I also tried pasting the code in my .cpp file, and evaluating it by placing
the cursor after it and pressing C-x C-e (now I understand how C-x C-e works
by the way). The minibar then displayed t; I guess that should be right. It
still didn't work after that; the indentation was two spaces, just as
before. The file I'm editing is a C++ file; I guess the indentation should
work for those files as well.


did you replace spaces with tabs?

(as someone else suggested) what does
  M-x describe-variable RET c-basic-offset RET
say?




reply via email to

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