diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-07 08:57:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-07 08:57:37 +0000 |
commit | 0affebd72e4b07908b92c51e35cda2e861c3eb4b (patch) | |
tree | 5d850ada9b80b00ac1e897cec74f369d8f0536b1 /misc | |
parent | 52ccfbcdd3621edd53a8227eb87178231503f9f7 (diff) | |
download | bundler-0affebd72e4b07908b92c51e35cda2e861c3eb4b.tar.gz |
ruby-additional.el: adjust heredoc line number
* misc/ruby-additional.el (ruby-insert-heredoc-code-block): insert
a newline adjust the line number for "begin" line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-additional.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/ruby-additional.el b/misc/ruby-additional.el index 5beecac219..07f7199226 100644 --- a/misc/ruby-additional.el +++ b/misc/ruby-additional.el @@ -162,11 +162,11 @@ Emacs to Ruby." "Insert indented here document code block" (interactive "P") (let ((c (if arg "~" "-"))) - (insert "\"#{<<" c "begin}#{<<" c "\"end;\"}\"")) + (insert "\"#{<<" c "\"begin\;\"}\\n#{<<" c "\"end;\"}\"")) (end-of-line) (if (eobp) (insert "\n") (forward-char)) (indent-region (point) - (progn (insert "begin\n" "end;\n") (point))) + (progn (insert "begin;\n" "end;\n") (point))) (beginning-of-line 0)) (define-key ruby-mode-map "\C-cH" 'ruby-insert-heredoc-code-block) )) |