changing indentation for case in Emacs (ruby.el)

W

Will Parsons

Using Emacs to edit ruby files, I'd like to have case expresssions indented
thus:

case x
when p then s
when q then t
end

rather than:

case x
when p then s
when q then t
end

Can I do this easily?

(PS: The 1st edition of Programming Ruby seems to use the first form,
judging from the on-line version; the 2nd edition uses the 2nd form,
looking at the paper copy of the book.)

- Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,315
Members
47,996
Latest member
LaurenFola

Latest Threads

Top