Search code examples
emacstabsruby-mode

How to configure emacs tabbing behavior


I've wrestled quite a bit with emacs tabbing, but haven't been able to figure this one out.

In ruby-mode:

SomeClass.create(
  this_is: where_i_want_to_tab,
  because: that_is_how_we_do_it
)

SomeClass.create(
                 this_is: where_emacs_wants_to_put_it,
                 but: my_pull_request_aint_gonna_be_merged_like_this
)

This is maybe a code style decision that the ruby-mode designers made, but is it possible to configure it?


Solution

  • Turns out you can configure this in 24.3:

    (setq ruby-deep-indent-paren nil)