[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

changing indentation for case in Emacs (ruby.el

Will Parsons

8/4/2007 12:34:00 AM

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