"Jim Freeze" <jim / freeze.org> schrieb im Newsbeitrag news:20040224111638.GA23593 / freeze.org... > On Tuesday, 24 February 2004 at 12:32:46 +0900, Patrick Bennett wrote: > > > > > FWIW, I have yet to hear a good reason for hard tabs. :) As soon as a > > *single* space is used *anywhere* on a line after tabs, the tabs mean > > nothing and will cause the indentation to be mismatched on someone > > else's system. With spaces, the indentation is *always* correct. > > Speaking of tabs, I have a colleague that uses emacs. Using > ruby-mode.el, <tabbing> indents two spaces, unless he tabs > 4 times. Then the 8 spaces are converted to a hard tab. > > Is there a way to prevent this from happening? Particularly, is > there a way for ruby-mode.el to do this so he does not have to > permanently change his tab setting in emacs. I'm not an emacs expert and the only solution that I would come up with is to write a hook that sets indent-tabs-mode to nil when entering ruby mode. Regards robert > > Thanks > > -- > "I went to a job interview the other day, the guy asked me if I had any > questions , I said yes, just one, if you're in a car traveling at the > speed of light and you turn your headlights on, does anything happen? > > He said he couldn't answer that, I told him sorry, but I couldn't work > for him then. > -- Steven Wright > >