mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	ruby-additional.el: shorten here-doc markers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									da4f041ea2
								
							
						
					
					
						commit
						487dfb9d22
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
     ))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue