2
my_array.each do
          # code here
        end

我认为最佳做法应该是:

my_array.each do
  # code here
end

应该在我的 Emacs 配置文件中添加一些东西吗?

4

1 回答 1

7

Seems to me you're using emacs-snapshot. By default it uses a new indentation engine that's a bit buggy right now. To revert to the old one evaluate the following Emacs Lisp code:

(setq ruby-use-smie nil)

And restart ruby-mode afterwards. I'll report the bug upstream.

于 2013-11-11T07:58:10.860 回答