[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small improvements to ruby-mode

From: Stefan Monnier
Subject: Re: Small improvements to ruby-mode
Date: Tue, 09 Jul 2013 04:50:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> In practice, with SMIE in ruby-mode enabled, I would expect

> foo(
>     1,
>     2,
>     3)

> to be indented as

> foo(
>   1,
>   2,
>   3)

> which doesn't happen.

That's not automatic.  You have to specify it explicitly in
ruby-smie-rules with something like (taken from sml-mode.el):

  (case kind
      ((member token '("let" "(" "[" "{"))
       (if (smie-rule-hanging-p) (smie-rule-parent)))

>> That's good.  So we should indeed upload a newer version (or better
>> yet, remove those out dated versions).
> https://github.com/nicferrier/marmalade/issues/55



reply via email to

[Prev in Thread] Current Thread [Next in Thread]