<?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>org-mode &#8211; Diary of an Emacs tragic</title>
	<atom:link href="https://emacstragic.net/category/emacs/org-mode/feed/" rel="self" type="application/rss+xml" />
	<link>https://emacstragic.net</link>
	<description>Jason Lewis</description>
	<lastBuildDate>Tue, 21 Aug 2012 04:59:57 +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>org-mode &#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>Insert a new heading after numbered list in org-mode</title>
		<link>https://emacstragic.net/uncategorized/insert-a-new-heading-after-numbered-list-in-org-mode/</link>
					<comments>https://emacstragic.net/uncategorized/insert-a-new-heading-after-numbered-list-in-org-mode/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Tue, 21 Aug 2012 04:59:57 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[org-mode]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=373</guid>

					<description><![CDATA[In org-mode in emacs, M-&#60;RET&#62; will add either a new heading or if your insertion point is between a list item and a heading, it will add a new list item. This is not always desirable. To add a new heading try C-U M-&#60;RET&#62;. I only discovered this as I got frustrated with org-mode insisting [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In org-mode in emacs, <code>M-&lt;RET&gt;</code> will add either a new heading or if your insertion point is between a list item and a heading, it will add a new list item. This is not always desirable. To add a new heading try <code>C-U M-&lt;RET&gt;</code>.<br />
I only discovered this as I got frustrated with org-mode insisting on adding an item to the list rather than creating a new heading. The emacs way around problems like this is to prefix the command with <code>C-U</code> to make it do something slightly different.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/insert-a-new-heading-after-numbered-list-in-org-mode/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">373</post-id>	</item>
		<item>
		<title>Converting lines of text into a numbered list in org-mode</title>
		<link>https://emacstragic.net/uncategorized/converting-lines-of-text-into-a-numbered-list-in-org-mode/</link>
					<comments>https://emacstragic.net/uncategorized/converting-lines-of-text-into-a-numbered-list-in-org-mode/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 11 Jul 2012 00:55:09 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[org-mode]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=204</guid>

					<description><![CDATA[Recently I had a list of things in a org buffer that I wanted to turn into a numbered list but couldn&#8217;t find an elegant way to do it. The solution I came up with was to use a regex-replace to insert 1. in front of each line. Then I used org-mode&#8217;s C-c C-c to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Recently I had a list of things in a org buffer that I wanted to turn into a numbered list but couldn&#8217;t find an elegant way to do it.<br />
The solution I came up with was to use a regex-replace to insert <code>1.</code> in front of each line. Then I used org-mode&#8217;s <code>C-c C-c</code> to renumber the lines.<br />
I also asked on #org-mode on irc. Two interesting solutions were suggested.</p>
<ol>
<li>use string-rectangle</li>
<p>use the string-rectangle function via the keyboard shortcuts: <code>C-x r t 1 . &lt;SPC&gt;</code><br />
string-rectangle is new to me but seems as though it could be very useful. Thanks quicksilver for that suggestion.</p>
<li>use org-mode&#8217;s org-toggle-item</li>
<p>which is described as:<br />
<code>Insert separator line in table or modify bullet status of line.<br />
Also turns a plain line or a region of lines into list items.<br />
Calls `org-table-insert-hline', `org-toggle-item', or<br />
`org-cycle-list-bullet', depending on context.</code><br />
The trick is to prefix it with C-u which supplies ARG to the function org-toggle-item which changes each line in a region into an item.<br />
&#8756; <code>C-u C-c -</code> then <code>S-right</code> until you get to the list type you want.<br />
Thanks Thumper_ for that suggestion.
</ol>
<p>UPDATE: zhen pointed me to rectangle-number-lines, which I did look at before but it&#8217;s default option numbers the lines without the full stop after each number. As I wanted this for org-mode, I really wanted the numbers to be formatted as &#8220;1. &#8220;. After reading the help on rectangle-number-lines though, I found that if you prefix it with the argument command <code>C-u</code> it will ask you for a starting number and the format of the numbers.<br />
&#8756; Select a rectangle at least one column wide of the lines you want to number then<br />
<code>C-u C-x r N &lt;ENTER&gt;&lt;backspace&gt;.&lt;spc&gt;&lt;ENTER&gt;</code></p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/converting-lines-of-text-into-a-numbered-list-in-org-mode/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">204</post-id>	</item>
	</channel>
</rss>
