{"action":"created","issue":{"url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/75","labels_url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/75/comments","events_url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/75/events","html_url":"https://github.com/zenspider/enhanced-ruby-mode/issues/75","id":64869515,"number":75,"title":"A consitent indentaion for multiline method calls or multiline hash definitions","user":{"login":"idlecool","id":253434,"avatar_url":"https://avatars.githubusercontent.com/u/253434?v=3","gravatar_id":"","url":"https://api.github.com/users/idlecool","html_url":"https://github.com/idlecool","followers_url":"https://api.github.com/users/idlecool/followers","following_url":"https://api.github.com/users/idlecool/following{/other_user}","gists_url":"https://api.github.com/users/idlecool/gists{/gist_id}","starred_url":"https://api.github.com/users/idlecool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idlecool/subscriptions","organizations_url":"https://api.github.com/users/idlecool/orgs","repos_url":"https://api.github.com/users/idlecool/repos","events_url":"https://api.github.com/users/idlecool/events{/privacy}","received_events_url":"https://api.github.com/users/idlecool/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-27T23:20:22Z","updated_at":"2015-03-27T23:40:37Z","closed_at":"2015-03-27T23:40:37Z","body":"This is a question and not an issue. I am posting it here as I don't know where else to ask. Is it possible to have a consistent 2 space indentation for multiline method calls and multiline hash definition?\r\n\r\nI have created a sample code to explain my concern.\r\n\r\n```ruby\r\nclass Example\r\n  def hello_world\r\n    ## Hash Definitions\r\n    # strict 2 space indentation\r\n    user_alpha_beta_gamma = {\r\n      name: \"John Doe\",\r\n      email: \"john@example\",\r\n      role: :admin\r\n    }\r\n\r\n    user_theta = {\r\n      name: \"John Doe\",\r\n      email: \"john@example\",\r\n      role: :admin\r\n    }\r\n\r\n    # auto indentation by enhanced-ruby-mode\r\n    user_alpha_beta_gamma = {\r\n                             name: \"John Doe\",\r\n                             email: \"john@example\",\r\n                             role: :admin\r\n                            }\r\n\r\n    user_theta = {\r\n                  name: \"John Doe\",\r\n                  email: \"john@example\",\r\n                  role: :admin\r\n                 }\r\n\r\n    ## Method Calls\r\n    # strict 2 space indentation\r\n    Mailer.deliver(\r\n      to: \"bob@example.com\",\r\n      from: \"john@example.com\",\r\n      subject: \"hello there\",\r\n      body: \"this is the first email\"\r\n    )\r\n\r\n    Mailer.quick_deliver(\r\n      to: \"bob@example.com\",\r\n      from: \"john@example.com\",\r\n      subject: \"hello there\",\r\n      body: \"this is the second email\"\r\n    )\r\n\r\n    # auto indentation by enhanced-ruby-mode\r\n    Mailer.deliver(\r\n                   to: \"bob@example.com\",\r\n                   from: \"john@example.com\",\r\n                   subject: \"hello there\",\r\n                   body: \"this is the first email\"\r\n                  )\r\n\r\n    Mailer.quick_deliver(\r\n                         to: \"bob@example.com\",\r\n                         from: \"john@example.com\",\r\n                         subject: \"hello there\",\r\n                         body: \"this is the second email\"\r\n                        )\r\n  end\r\nend\r\n```\r\n\r\nIs there a way I can switch to a strict 2 space indentation scheme in enhanced-ruby-mode?"},"comment":{"url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/comments/87122306","html_url":"https://github.com/zenspider/enhanced-ruby-mode/issues/75#issuecomment-87122306","issue_url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/75","id":87122306,"user":{"login":"idlecool","id":253434,"avatar_url":"https://avatars.githubusercontent.com/u/253434?v=3","gravatar_id":"","url":"https://api.github.com/users/idlecool","html_url":"https://github.com/idlecool","followers_url":"https://api.github.com/users/idlecool/followers","following_url":"https://api.github.com/users/idlecool/following{/other_user}","gists_url":"https://api.github.com/users/idlecool/gists{/gist_id}","starred_url":"https://api.github.com/users/idlecool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idlecool/subscriptions","organizations_url":"https://api.github.com/users/idlecool/orgs","repos_url":"https://api.github.com/users/idlecool/repos","events_url":"https://api.github.com/users/idlecool/events{/privacy}","received_events_url":"https://api.github.com/users/idlecool/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T23:40:37Z","updated_at":"2015-03-27T23:40:37Z","body":"works like a charm. thank you. :+1: "}}