my_array.each do
# code here
end
我认为最佳做法应该是:
my_array.each do
# code here
end
应该在我的 Emacs 配置文件中添加一些东西吗?
my_array.each do
# code here
end
我认为最佳做法应该是:
my_array.each do
# code here
end
应该在我的 Emacs 配置文件中添加一些东西吗?
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.