[英]Emacs erlang-mode indent too deeply
This is what I want: 这就是我要的:
get_exc_info() ->
db_agent:select_row(exc_sit,
"begin_exc_time, total_exc_time, last_logout_time",
[{player_id, Player#player.id}].
Now it's the following style: 现在是以下样式:
get_exc_info() ->
db_agent:select_row(exc_sit,
"begin_exc_time, total_exc_time, last_logout_time",
[{player_id, Player#player.id}].
Is there anyway to modify? 反正有修改吗? Thank you.
谢谢。
From what I've seen, functions with long names or with extra long argument names are usually indented as follows: 从我所见,带有长名称或带有超长参数名称的函数通常缩进如下:
foo() ->
bar_the_long_one(
FirstArgumentWithExtraLongName,
SecondArgumentWithExtraLongName),
In this case you can set argument indent with erlang-argument-indent
variable. 在这种情况下,您可以使用
erlang-argument-indent
变量设置参数indent。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.