unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Indentation settings problems
@ 2009-09-19 10:46 TriKri
  2009-09-20  1:55 ` Bernardo
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: TriKri @ 2009-09-19 10:46 UTC (permalink / raw)
  To: Help-gnu-emacs


Hi. I'm having some trouble getting the size of the indentation right. I'm
writing a .cpp-file, but I guess the indentation will work in about the same
way as for a .c-file. I'm running windows (more specifically windows 7), and
I've just installed GNU Emacs 23.1.1. The indentation is 2 spaces right now.
I prefer a tab instead (with tab width 4), or possibly 4 spaces if tab is
not possible. Here is what I've tried: I enter the options, go to
Editing->Indent, where I find that the variable "Standard Indent" is set to
4. I get 2 spaces when I indent, why not 4? Okay I get 2 spaces, so how do I
change it? I have also tried changing "C Basic Offset" in
Programming->Languages->C to "Override style settings: 4", but that doesn't
work either. It's still indenting with 2 spaces.

So, I would prefer 4 spaces instead of 2, or even better, a tab, and having
the tab width set to 4 (how I now can change the tab width) so someone else
with another text editor can apply another indentation size on my code by
simply setting the tab width in their editor. Can someone tell me how to
change this? And I'm an Emacs newbie, so you will have to tell me exactly
which variables to change and how to change them.

Thanks in advance

-Kristofer
-- 
View this message in context: http://www.nabble.com/Indentation-settings-problems-tp25520490p25520490.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





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

end of thread, other threads:[~2009-10-07 18:57 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-19 10:46 Indentation settings problems TriKri
2009-09-20  1:55 ` Bernardo
2009-09-20  2:18   ` Bernardo
2009-09-20 18:37   ` TriKri
2009-09-20 18:55     ` Peter Dyballa
2009-09-20 19:41     ` Andreas Politz
2009-09-24  7:42       ` TriKri
2009-09-20 22:22   ` TriKri
2009-09-21 10:57     ` Bernardo
2009-09-22 18:02     ` TriKri
2009-09-22 22:54       ` Bernardo
     [not found]   ` <mailman.7104.1253471858.2239.help-gnu-emacs@gnu.org>
2009-09-21 21:27     ` jpkotta
2009-09-23  8:38   ` TriKri
2009-09-23 11:15     ` Alan Mackenzie
2009-10-01 22:44 ` TriKri
2009-10-03  5:45   ` tomas
2009-10-03 19:56 ` TriKri
     [not found] ` <mailman.7953.1254599775.2239.help-gnu-emacs@gnu.org>
2009-10-07 18:57   ` John A Pershing Jr

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