TABs (was: Waffling between Python and Ruby)

Huaiyu Zhu hzhu at mars.localdomain
Sat Jun 17 21:58:46 EDT 2000


On 16 Jun 2000 22:43:29 -0400, David Bolen <db3l at fitlinxx.com> wrote:
>hzhu at knowledgetrack.com (Huaiyu Zhu) writes:
>
>> OK, so I agree that the (setq-default tab-width 4) in my .emacs is evil (it
>> sits there since way back when I copied my first .emacs from somebody else),
>> I'm wondering what's the easiest way to revert this on multiple files,
>> either within or without emacs.  If I'm going to change my default emacs
>> behavior I want to do this on all the files, and safely.
>
>One fairly simple way is to untabify your file, change the tab width,
>and then if you want re-tabify.  Emacs will use a mixture of TABs
>(using the new tab width definition) and spaces to achieve the same
>spacing you already have.
>

This is simple to do for one file, but not for many files.  I'd prefer
running something in batch mode on a list of files.

Huaiyu



More information about the Python-list mailing list