<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: how to auto-indent in emacs</title>
	<atom:link href="http://desk.stinkpot.org/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/</link>
	<description>tricks!</description>
	<lastBuildDate>Thu, 02 Feb 2012 20:46:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Rob Stewart</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-12449</link>
		<dc:creator>Rob Stewart</dc:creator>
		<pubDate>Mon, 29 Nov 2010 12:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-12449</guid>
		<description>@octoberdan

Setting indent-tabs-mode to nil will insert spaces to fill the columns a tab would have filled, but it will not convert tabs to spaces.  For that you need M-x untabify.</description>
		<content:encoded><![CDATA[<p>@octoberdan</p>
<p>Setting indent-tabs-mode to nil will insert spaces to fill the columns a tab would have filled, but it will not convert tabs to spaces.  For that you need M-x untabify.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Stewart</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-12448</link>
		<dc:creator>Rob Stewart</dc:creator>
		<pubDate>Mon, 29 Nov 2010 12:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-12448</guid>
		<description>@john doe

There is no Emacs equivalent of vi&#039;s :set autoindent.  Instead, Emacs references a variable, indent-line-function, to determine the function to call to handle indentation.  Setting indent-line-function to indent-relative or indent-relative-maybe, for example, will replicate the previous line&#039;s indentation, according to the function&#039;s algorithm.  Normally, you don&#039;t set indent-line-function but rather leave that to a buffer&#039;s mode.

For example, in an Elisp buffer, the mode is Emacs-Lisp and indent-line-function is set to list-indent-line.  In a C++ file&#039;s buffer, the mode is C++ and indent-line-function is set to c-indent-line.  In a Fundamental mode buffer, indent-line-function is set to indent-line.</description>
		<content:encoded><![CDATA[<p>@john doe</p>
<p>There is no Emacs equivalent of vi&#8217;s :set autoindent.  Instead, Emacs references a variable, indent-line-function, to determine the function to call to handle indentation.  Setting indent-line-function to indent-relative or indent-relative-maybe, for example, will replicate the previous line&#8217;s indentation, according to the function&#8217;s algorithm.  Normally, you don&#8217;t set indent-line-function but rather leave that to a buffer&#8217;s mode.</p>
<p>For example, in an Elisp buffer, the mode is Emacs-Lisp and indent-line-function is set to list-indent-line.  In a C++ file&#8217;s buffer, the mode is C++ and indent-line-function is set to c-indent-line.  In a Fundamental mode buffer, indent-line-function is set to indent-line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: verma</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-11375</link>
		<dc:creator>verma</dc:creator>
		<pubDate>Mon, 03 Aug 2009 21:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-11375</guid>
		<description>Works great! thanks for the tip.</description>
		<content:encoded><![CDATA[<p>Works great! thanks for the tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: octoberdan</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-11306</link>
		<dc:creator>octoberdan</dc:creator>
		<pubDate>Mon, 13 Jul 2009 15:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-11306</guid>
		<description>Thank you for the tip! Quite useful. If indent-tabs-mode is nil, will tabs be converted to spaces?</description>
		<content:encoded><![CDATA[<p>Thank you for the tip! Quite useful. If indent-tabs-mode is nil, will tabs be converted to spaces?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-11268</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Wed, 17 Jun 2009 09:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-11268</guid>
		<description>Thanks a lot !
I used to hit tabs per line before. This is awesome. Is there a way to remove multiple blank lines and keep only one blank line ?</description>
		<content:encoded><![CDATA[<p>Thanks a lot !<br />
I used to hit tabs per line before. This is awesome. Is there a way to remove multiple blank lines and keep only one blank line ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john doe</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-11056</link>
		<dc:creator>john doe</dc:creator>
		<pubDate>Thu, 12 Mar 2009 10:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-11056</guid>
		<description>And could you write what is the VI equivalent od :set ai in emacs?</description>
		<content:encoded><![CDATA[<p>And could you write what is the VI equivalent od :set ai in emacs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: me</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-10748</link>
		<dc:creator>me</dc:creator>
		<pubDate>Mon, 16 Feb 2009 20:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-10748</guid>
		<description>You&#039;re confusing auto-indent with auto code formatting. auto-indent means that it inserts the same space before a new line as it did on the previous line.

Automatic code formatter is a different thing entirely. Ctrl+Alt+\ is an auto code formatter. Your article caused me hours of confusion before I found out what the VI equivalent of :set ai was on emacs....</description>
		<content:encoded><![CDATA[<p>You&#8217;re confusing auto-indent with auto code formatting. auto-indent means that it inserts the same space before a new line as it did on the previous line.</p>
<p>Automatic code formatter is a different thing entirely. Ctrl+Alt+\ is an auto code formatter. Your article caused me hours of confusion before I found out what the VI equivalent of :set ai was on emacs&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: noshir</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-9027</link>
		<dc:creator>noshir</dc:creator>
		<pubDate>Sun, 20 Jan 2008 12:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-9027</guid>
		<description>thank you

and thank you emacs so nice this auto indent</description>
		<content:encoded><![CDATA[<p>thank you</p>
<p>and thank you emacs so nice this auto indent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: y</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-7172</link>
		<dc:creator>y</dc:creator>
		<pubDate>Thu, 27 Sep 2007 22:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-7172</guid>
		<description>It&#039;s not control + M (as in shift+m) it&#039;s control + meta, usually alt or escape. So, depending on your settings it might be control+alt+\</description>
		<content:encoded><![CDATA[<p>It&#8217;s not control + M (as in shift+m) it&#8217;s control + meta, usually alt or escape. So, depending on your settings it might be control+alt+\</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: x</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-auto-indent-in-emacs/comment-page-1/#comment-6947</link>
		<dc:creator>x</dc:creator>
		<pubDate>Sun, 23 Sep 2007 13:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=21#comment-6947</guid>
		<description>Not always working, maybe i&#039;m dull on this ...
Ctrl+M just gives a newline, before hitting \</description>
		<content:encoded><![CDATA[<p>Not always working, maybe i&#8217;m dull on this &#8230;<br />
Ctrl+M just gives a newline, before hitting \</p>
]]></content:encoded>
	</item>
</channel>
</rss>

