views:

221

answers:

1

ruby-mode from svn, looks equal to 1.1 version

here is emacs indentation of hash

User.all({
       :joins => :account,
       :conditions => {:delete_at => nil}
     })

here is the same in vim

User.all({
  :joins => :account,
  :conditions => {:delete_at => nil}
})

How to make emacs indent like vim in ruby-mode?

+2  A: 

Try M-x customize-mode; you'll see options for customizing Ruby indentation. Looks like you may want to change "Ruby Deep Indent Paren" to nil.

Nicholas Riley
Thanks, looks much better.
edbond