<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>macros &#8211; Diary of an Emacs tragic</title>
	<atom:link href="https://emacstragic.net/tag/macros/feed/" rel="self" type="application/rss+xml" />
	<link>https://emacstragic.net</link>
	<description>Jason Lewis</description>
	<lastBuildDate>Wed, 22 May 2013 02:33:32 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://emacstragic.net/wp-content/uploads/2018/12/cropped-jason-lewis-profile-picture-square-150x150.jpg</url>
	<title>macros &#8211; Diary of an Emacs tragic</title>
	<link>https://emacstragic.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">38469313</site>	<item>
		<title>Emacs: yank a line multiple times from the kill ring</title>
		<link>https://emacstragic.net/uncategorized/emacs-yank-multiple-times-from-the-kill-ring/</link>
					<comments>https://emacstragic.net/uncategorized/emacs-yank-multiple-times-from-the-kill-ring/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 22 May 2013 02:33:32 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<category><![CDATA[macros]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=806</guid>

					<description><![CDATA[Today I needed to copy a line multiple times in emacs. I needed 8 copies, but how to do that in emacs short of pressing C-y to yank 8 times? My initial guess was to try C-u 8 C-y but that yanks the 8th item from the kill ring. Fuco on #emacs supplied the awesome [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Today I needed to copy a line multiple times in emacs. I needed 8 copies, but how to do that in emacs short of pressing <kbd>C-y</kbd> to yank 8 times? My initial guess was to try <kbd>C-u 8 C-y</kbd> but that yanks the 8th item from the kill ring.<br />
Fuco on #emacs supplied the awesome answer:<br />
<kbd>F3 C-y C-8 F4</kbd><br />
So what does that do? <kbd>F3</kbd>starts recording a macro, <kbd>C-y</kbd>yanks the line, then within the macro itself you can add a numeric argument of 8 using <kbd>C-8</kbd>. End recording of the macro with <kbd>F4</kbd>. Emacs then runs the macro 8 times. Recall that pressing F4 after ending recording of the macro runs the macro.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/emacs-yank-multiple-times-from-the-kill-ring/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">806</post-id>	</item>
	</channel>
</rss>
