aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang.el
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2009-12-15 12:24:40 +0100
committerDan Gudmundsson <[email protected]>2009-12-15 12:34:02 +0100
commit5b0418e2f5e70d9eeadcfc2009bd7c69e336c939 (patch)
tree4e1a893c97186cadd6ea1827be62d2504d086dc9 /lib/tools/emacs/erlang.el
parent53c1f771aee097c8f2835aeb18b272ab7fb5991c (diff)
downloadotp-5b0418e2f5e70d9eeadcfc2009bd7c69e336c939.tar.gz
otp-5b0418e2f5e70d9eeadcfc2009bd7c69e336c939.tar.bz2
otp-5b0418e2f5e70d9eeadcfc2009bd7c69e336c939.zip
Added a indentation when using electric-comma.
In the following code case X of foo -> 25 end, Automatically indent the line you stand on (end,) before adding newline and indent again. That way 'end' will be indented correctly after the comma is written.
Diffstat (limited to 'lib/tools/emacs/erlang.el')
-rw-r--r--lib/tools/emacs/erlang.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index f623e3a1ee..6d6f9e24f4 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -4946,6 +4946,7 @@ non-whitespace characters following the point on the current line."
(setq erlang-electric-newline-inhibit nil)
(setq erlang-electric-newline-inhibit t)
(undo-boundary)
+ (erlang-indent-line)
(end-of-line)
(newline)
(condition-case nil