Set your tabs stops every eight columns and the source will be aligned properly.

I like the tabs in the source because I can move around indented lines faster (and the file is a few bytes shorter). I also like braces lined up like this

if (foo)
  {
    bar();
  }

which would mean a tab width of 2 to make everything be tabbist - which might just as well stay as spaces. (But tabs every 2 would also make the source almost immediately run off the right hand edge when viewed on my teletype, with its tabs hard-wired at every eighth column, not to mention the cacophony of bell ringing that would ensue every time it reached the margin set 10 spaces before the right-hand edge of the paper.)

FWIW, I don't do anything special to Emacs (which I use when away from my teletype) to get this behaviour - tabs every eight, and compressing multiple spaces into single tab characters when possible, is the default behaviour. Works for me, but then I still think of my computer as a typewriter - with pretty colours and unlimited built-in tippex.

Spaced-out people should refer to expand(1).

HTH,
Ian


_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to