diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-electric.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/ruby-electric.el b/misc/ruby-electric.el index 0a55681a6e..bbdfbb7c60 100644 --- a/misc/ruby-electric.el +++ b/misc/ruby-electric.el @@ -168,8 +168,11 @@ strings. Note that you must have Font Lock enabled." (insert " ") (save-excursion (if ruby-electric-newline-before-closing-bracket - (newline)) - (insert "}"))) + (progn + (newline) + (insert "}") + (ruby-indent-line t)) + (insert "}")))) ((ruby-electric-string-at-point-p) (if (eq last-command-event ?{) (save-excursion |