From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Tue, 6 Dec 2005 13:54:13 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Acme tabs to spaces In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Topicbox-Message-UUID: bab6458e-ead0-11e9-9d60-3106f5b1d025 > So my new employer has a coding convention that tabs don't appear in > source, and that indent levels are 4 spaces. Ick. But in the > interest of global harmony, I'm willing to adapt. I know I can > trivially convert the tabs to spaces at any given time, and set > $tabstops to 4 to get the right width, but I have to do the > conversion with each file I save. Ick. > Is there some automatic tab conversion code somewhere in Acme? Where > would be the sane place to put such a thing? (yes, I already know > there is no sane place for such a thing...) acme -a goes a long way to making typing four spaces an okay thing to do by hand. everyone has their own programs to convert. mine is in /n/sources/contrib/rsc/cmd/tab.c tab -n4 converts from spaces to tabs tab -u -n4 converts from tabs to spaces you could go a step further and create scripts T and U for execution in acme windows that use $winid to pick up the window contents, process it, and put it back. russ