From: Charles Thornton Date: 2007-07-19T06:25:19+09:00 Subject: Re: indentation / emacs woes Charles Oliver Nutter wrote: > Ryan Davis wrote: >> OK. Can someone give me the tweaks I need to make ruby source read >> with proper indentation in emacs again? Something is terribly ugly >> now (pretty much since the svn transition?) and I can't figure out >> what I'm missing. >> >> I tried ruby-style.el but it didn't seem to help. I might have >> conflicting settings elsewhere in my emacs config? >> > > Dunno about emacs, but if I set tabs to eight characters things line > up ok. Given that I hate tabs, I usually leave it at four to allow my > rage to remain intact. > > - Charlie > > > > Use the UNTABIFY Feature: IN: .xemacs/.init.el (setq indent-tabs-mode nil) ##This will convert tabs to the appropriate number of spaces automatically ## Defining the following command "Ctrl-C u" (The key binding of course is your choice) Will automatically covert any Tabs already in a file to the appropriate number of spaces (defalias 'untab (read-kbd-macro "C-x h M-x untabify RET")) (global-set-key [(control c) u] 'untab) Chuck T.