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

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

Re: Weird Tabbing Effects


From: Tassilo Horn
Subject: Re: Weird Tabbing Effects
Date: Wed, 02 Apr 2008 11:49:21 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

>> Is there any way I can fix these files so that they're viewable in
>> other editors? Also, what caused this problem?
>
> Just make sure that all programmes use the same tab width! This value
> can be set on mechanical typewriter machines as well as in
> applications. Well, there is also a side-effect with fonts:
> proportional fonts can make problems.

Additionally, emacs by default indents with tabs and spaces.  A tab is 8
chars wide, and if a line should be indented by 10 chars, vanilla emacs
will insert one tab ant two spaces.

Most editors use only tabs or only spaces, and when the tab-width isn't
8 the files you wrote in emacs look weired.

One way to get along with that is to open the files with emacs and do

  M-x customize-option RET indent-tabs-mode

and set it to off (nil).  Then save the files again, and all tabs will
be converted to spaces.

I prefer indenting with spaces, but others milages may vary.

HTH,
Tassilo
-- 
Chuck Norris describes human beings as "a sociable holder for blood and guts". 





reply via email to

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