From 487dfb9d2266e1e21fa35ad6933883a99ec7a35f Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 2 Oct 2017 04:06:55 +0000 Subject: [PATCH] ruby-additional.el: shorten here-doc markers git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/ruby-additional.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/ruby-additional.el b/misc/ruby-additional.el index 9914178003..432adfedb6 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\;\"}\\n#{<<" c "'end;'}\"")) + (insert "\"#{<<" c "\"{#\"}\\n#{<<" c "'};'}\"")) (end-of-line) (if (eobp) (insert "\n") (forward-char)) (indent-region (point) - (progn (insert "begin;\n" "end;\n") (point))) + (progn (insert "{#\n" "};\n") (point))) (beginning-of-line 0)) (define-key ruby-mode-map "\C-cH" 'ruby-insert-heredoc-code-block) ))