TABs (was: Waffling between Python and Ruby)

David Bolen db3l at fitlinxx.com
Fri Jun 16 22:43:29 EDT 2000


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.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list