From: Dennis Newbold Date: 2002-04-21T09:13:42+09:00 Subject: Re: Undelivered Mail Returned to Sender Hi Soso, I don't use xemacs myself, so can't commemnt much on the "features" you mention. Regarding tabs, with vim, you can do the following (assuming your Ruby source file is named myprog.rb): vim myprog.rb :1,$s/^I/ /g ZZ Where, the ^I is actually produced by hitting the TAB character. This will make a pass over your entire file, converting all tab characters to 4 spaces. The "ZZ" will save the file, and exit from vim. (Equivalent to C-K,C-Q in emacs, I think). I have vim set up to use 4-char tabs, but I like doing this every once in awhile, and especially before passing along a program to a friend, as it guarantees that the source will look the same under all editors. Hope this helps. P.S. This is not a "vim is better than xemacs" comment. Regarding the two, I'm pretty neutral. I just know enough to get by in the one, and am not motivated enough to try to learn the other. Take care. --------------------------------------------- | | | The way to be happy is to be good | | | --------------------------------------------- On Sat, 20 Apr 2002, Soso Chs wrote: > > hi all, > > I'm new both to ruby and xemacs(emacs), I used xemacs with ruby-mode.el and > it seems nice but the identation mechanism behaves a little strange (for me I > guess :))). I loaded a ruby program and when I hit enter at the end of an > idented line the cursor moves at the begining of the new line. By hitting tab > then it moves at the same identation level as the previous line. Is this normal > ?? Shouldnt move at the same identation level from the first time, when I hit > enter without having to hit enter? > Also, I use a 4 char tab and all of the ruby files from examples, etc use a > 2 char tab and the identation it doesnt work as it supposed to be anymore. > > I would appreciate some hints if someone knows how to handle all of this. > > thanx in advance > sosos > > > > > > > > ______________________________________________________________________ > > Do you want a free e-mail for life ? Get it at http://www.email.ro/ > > > > > > > > > ______________________________________________________________________ > Do you want a free e-mail for life ? Get it at http://www.email.ro/ >