Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 789
edbond Avatar asked May 05 '10 19:05

edbond


1 Answers

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.

like image 114
Nicholas Riley Avatar answered Oct 06 '22 05:10

Nicholas Riley