<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Ruby on Emacs(journey from TextMate to Emacs&#8230;)</title>
	<atom:link href="http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/</link>
	<description>the way i see it.......</description>
	<lastBuildDate>Sat, 19 Dec 2009 11:44:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: janmejay</title>
		<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/#comment-129</link>
		<dc:creator>janmejay</dc:creator>
		<pubDate>Sun, 13 Dec 2009 21:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=149#comment-129</guid>
		<description>a friend suggested i should post this here... http://codehunk.wordpress.com/2009/06/27/emacs-repo-for-ruby-webapps/ does a developer&#039;s eye comparison between Rubymine, TextMate and Emacs as RoR development environments. May be in interesting read for people considering switch of development environment.</description>
		<content:encoded><![CDATA[<p>a friend suggested i should post this here&#8230; <a href="http://codehunk.wordpress.com/2009/06/27/emacs-repo-for-ruby-webapps/" rel="nofollow">http://codehunk.wordpress.com/2009/06/27/emacs-repo-for-ruby-webapps/</a> does a developer&#8217;s eye comparison between Rubymine, TextMate and Emacs as RoR development environments. May be in interesting read for people considering switch of development environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikkel</title>
		<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/#comment-121</link>
		<dc:creator>Mikkel</dc:creator>
		<pubDate>Sat, 28 Nov 2009 23:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=149#comment-121</guid>
		<description>This post is awesome! Thanks for sharing :)</description>
		<content:encoded><![CDATA[<p>This post is awesome! Thanks for sharing <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janmejay</title>
		<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/#comment-50</link>
		<dc:creator>janmejay</dc:creator>
		<pubDate>Wed, 11 Feb 2009 05:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=149#comment-50</guid>
		<description>Sorry for the bad indentation of elisp snippets(its all wordpress&#039; fault....) :-(</description>
		<content:encoded><![CDATA[<p>Sorry for the bad indentation of elisp snippets(its all wordpress&#8217; fault&#8230;.) <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janmejay</title>
		<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/#comment-49</link>
		<dc:creator>janmejay</dc:creator>
		<pubDate>Wed, 11 Feb 2009 05:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=149#comment-49</guid>
		<description>At times you want to set different indent-offset for ruby and C++ mode(usually, ruby is 2 and C++/C is 4). Carbon Emacs(the one that i use on my mac) was not letting me change the tab-width and had it set as 2 even for C++(some C-h c  and C-h c  is enough to make you realize that reindent-then-newline-and-indent is the procedure used for indentation, which internally reads variable called &lt;i&gt;indent-line-function&lt;/i&gt; to figure out which procedure is to be called. In C/C++ mode it happens to be &lt;i&gt;c-indent-line&lt;/i&gt;. To change the depth of indentation, try setting &lt;b&gt;c-basic-offset&lt;/b&gt; insteed of tab-width. This is what my C++ mode hook looks like....

&lt;code&gt;
(setq-default indent-tabs-mode nil)

(defun my-c++-mode-hook ()
  (setq tab-width 4)
  (setq c-basic-offset 4)
  (define-key c++-mode-map &quot;\C-m&quot; &#039;reindent-then-newline-and-indent)
  (define-key c++-mode-map &quot;\C-ce&quot; &#039;c-comment-edit)
  (setq c++-auto-hungry-initial-state &#039;none)
  (setq c++-delete-function &#039;backward-delete-char)
  (setq c++-tab-always-indent t)
  (setq c-indent-level 4)
  (setq c-continued-statement-offset 4)
  (setq c++-empty-arglist-indent 4))

(defun my-c-mode-hook ()
  (setq tab-width 4)
  (setq c-basic-offset 4)
  (define-key c-mode-map &quot;\C-m&quot; &#039;reindent-then-newline-and-indent)
  (define-key c-mode-map &quot;\C-ce&quot; &#039;c-comment-edit)
  (setq c-auto-hungry-initial-state &#039;none)
  (setq c-delete-function &#039;backward-delete-char)
  (setq c-tab-always-indent t)
  (setq c-indent-level 4)
  (setq c-continued-statement-offset 4)
  (setq c-brace-offset -4)
  (setq c-argdecl-indent 0)
  (setq c-label-offset -4))

(add-hook &#039;c++-mode-hook &#039;my-c++-mode-hook)
(add-hook &#039;c-mode-hook &#039;my-c-mode-hook)
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>At times you want to set different indent-offset for ruby and C++ mode(usually, ruby is 2 and C++/C is 4). Carbon Emacs(the one that i use on my mac) was not letting me change the tab-width and had it set as 2 even for C++(some C-h c  and C-h c  is enough to make you realize that reindent-then-newline-and-indent is the procedure used for indentation, which internally reads variable called <i>indent-line-function</i> to figure out which procedure is to be called. In C/C++ mode it happens to be <i>c-indent-line</i>. To change the depth of indentation, try setting <b>c-basic-offset</b> insteed of tab-width. This is what my C++ mode hook looks like&#8230;.</p>
<p><code><br />
(setq-default indent-tabs-mode nil)</p>
<p>(defun my-c++-mode-hook ()<br />
  (setq tab-width 4)<br />
  (setq c-basic-offset 4)<br />
  (define-key c++-mode-map "\C-m" 'reindent-then-newline-and-indent)<br />
  (define-key c++-mode-map "\C-ce" 'c-comment-edit)<br />
  (setq c++-auto-hungry-initial-state 'none)<br />
  (setq c++-delete-function 'backward-delete-char)<br />
  (setq c++-tab-always-indent t)<br />
  (setq c-indent-level 4)<br />
  (setq c-continued-statement-offset 4)<br />
  (setq c++-empty-arglist-indent 4))</p>
<p>(defun my-c-mode-hook ()<br />
  (setq tab-width 4)<br />
  (setq c-basic-offset 4)<br />
  (define-key c-mode-map "\C-m" 'reindent-then-newline-and-indent)<br />
  (define-key c-mode-map "\C-ce" 'c-comment-edit)<br />
  (setq c-auto-hungry-initial-state 'none)<br />
  (setq c-delete-function 'backward-delete-char)<br />
  (setq c-tab-always-indent t)<br />
  (setq c-indent-level 4)<br />
  (setq c-continued-statement-offset 4)<br />
  (setq c-brace-offset -4)<br />
  (setq c-argdecl-indent 0)<br />
  (setq c-label-offset -4))</p>
<p>(add-hook 'c++-mode-hook 'my-c++-mode-hook)<br />
(add-hook 'c-mode-hook 'my-c-mode-hook)<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janmejay</title>
		<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/#comment-48</link>
		<dc:creator>janmejay</dc:creator>
		<pubDate>Wed, 11 Feb 2009 05:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=149#comment-48</guid>
		<description>Ditched tempo-snippets in favour of yasnippet. :-)</description>
		<content:encoded><![CDATA[<p>Ditched tempo-snippets in favour of yasnippet. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janmejay</title>
		<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/#comment-47</link>
		<dc:creator>janmejay</dc:creator>
		<pubDate>Tue, 10 Feb 2009 05:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=149#comment-47</guid>
		<description>I recently moved to &lt;a href=&quot;http://code.google.com/p/yasnippet/&quot; rel=&quot;nofollow&quot;&gt;yasnippet&lt;/a&gt;. Is comes with a whole lot of amazing snippets, and its awesome. Serious emacs users must check this one out.</description>
		<content:encoded><![CDATA[<p>I recently moved to <a href="http://code.google.com/p/yasnippet/" rel="nofollow">yasnippet</a>. Is comes with a whole lot of amazing snippets, and its awesome. Serious emacs users must check this one out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janmejay</title>
		<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/#comment-45</link>
		<dc:creator>janmejay</dc:creator>
		<pubDate>Thu, 29 Jan 2009 10:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=149#comment-45</guid>
		<description>Came across another helpful add-on... 
&lt;a href=&#039;http://emacs-textmate.googlecode.com/svn/trunk/textmate.el&#039; rel=&quot;nofollow&quot;&gt;Pick up textmate.el&lt;/a&gt; and include the following lines in your init file....
&lt;code&gt;
(load-file &quot;~/emacs_extensions/textmate.el&quot;)
(require &#039;textmate-mode)
(defun textmate-mode-enable-hook ()
    (textmate-mode t))
(add-hook &#039;ruby-mode-hook &#039;textmate-mode-enable-hook)
(add-hook &#039;emacs-lisp-mode-hook &#039;textmate-mode-enable-hook)
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Came across another helpful add-on&#8230;<br />
<a href='http://emacs-textmate.googlecode.com/svn/trunk/textmate.el' rel="nofollow">Pick up textmate.el</a> and include the following lines in your init file&#8230;.<br />
<code><br />
(load-file "~/emacs_extensions/textmate.el")<br />
(require 'textmate-mode)<br />
(defun textmate-mode-enable-hook ()<br />
    (textmate-mode t))<br />
(add-hook 'ruby-mode-hook 'textmate-mode-enable-hook)<br />
(add-hook 'emacs-lisp-mode-hook 'textmate-mode-enable-hook)<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janmejay</title>
		<link>http://codehunk.wordpress.com/2009/01/14/ruby-on-emacsjourney-from-textmate-to-emacs/#comment-44</link>
		<dc:creator>janmejay</dc:creator>
		<pubDate>Thu, 29 Jan 2009 07:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=149#comment-44</guid>
		<description>Just tweeked ECB project directory view to pick up all directories that have .emacs_project file in them, and it works like a charm. I love the hackablity that comes with emacs.(&lt;a href=&quot;http://gist.github.com/46444&quot; rel=&quot;nofollow&quot;&gt;have updated the gist&lt;/a&gt;)</description>
		<content:encoded><![CDATA[<p>Just tweeked ECB project directory view to pick up all directories that have .emacs_project file in them, and it works like a charm. I love the hackablity that comes with emacs.(<a href="http://gist.github.com/46444" rel="nofollow">have updated the gist</a>)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
