0

I am using emacs 24.4 in -nw terminal mode. I know ruby-mode is included but I cannot get the following snippet to indent correctly in a .rb file.

private
    def
    end

Instead I can only get

private
def
end
2
  • 2
    This answer may explain what you experience. TL;DR: ruby-mode does not indent after private by default, conforming to the .ruby style guide recomendations.
    – theldoria
    Aug 1, 2016 at 6:15
  • Thanks @theldoria, that seems to be what was causing my confusion! :D Aug 1, 2016 at 16:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.