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
    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 '16 at 6:15
  • Thanks @theldoria, that seems to be what was causing my confusion! :D – Adam Thompson Aug 1 '16 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.