edbond
edbond

Reputation: 3951

like-vim emacs ruby indentation

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?

Upvotes: 9

Views: 1782

Answers (1)

Nicholas Riley
Nicholas Riley

Reputation: 44321

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.

Upvotes: 16

Related Questions