<?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: Easier Emacs</title>
	<atom:link href="http://nflath.com/2009/08/easier-emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://nflath.com/2009/08/easier-emacs/</link>
	<description>Technology-related ideas, mainly involving Emacs</description>
	<pubDate>Sun, 19 May 2013 06:13:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pete Wilson</title>
		<link>http://nflath.com/2009/08/easier-emacs/comment-page-1/#comment-263</link>
		<dc:creator>Pete Wilson</dc:creator>
		<pubDate>Fri, 28 Aug 2009 19:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=334#comment-263</guid>
		<description>I really like the key unbinding. I use the arrows to much too. But I don’t have your confidence so I wanted a safety net. I just created the following function to toggle the arrow keys on and off.

&lt;pre&gt;
(defun my-toggle-arrow-key-functions (&amp;optional arg)
  "Enable or disable the arrow keys.
Called with no arguments disables the arrow keys.
Called with a non nil argument enables the arrow keys.

Used to force yourself to keep your hands on the home row for
basic navigation."
  (interactive "P")
  (cond ((null arg)  
         (global-unset-key (kbd "&lt;left&gt;"))
         (global-unset-key (kbd "&lt;right&gt;"))
         (global-unset-key (kbd "&lt;up&gt;"))
         (global-unset-key (kbd "&lt;down&gt;"))

         (global-unset-key (kbd "C-&lt;left&gt;"))
         (global-unset-key (kbd "C-&lt;right&gt;"))
         (global-unset-key (kbd "C-&lt;up&gt;"))
         (global-unset-key (kbd "C-&lt;down&gt;"))

         (global-unset-key (kbd "M-&lt;left&gt;"))
         (global-unset-key (kbd "M-&lt;right&gt;"))
         (message "Arrow keys disabled"))
        (t
         (global-set-key (kbd "&lt;left&gt;")    'backward-char)
         (global-set-key (kbd "&lt;right&gt;")   'forward-char)
         (global-set-key (kbd "&lt;up&gt;")      'previous-line)
         (global-set-key (kbd "&lt;down&gt;")    'next-line)

         (global-set-key (kbd "C-&lt;left&gt;")  'backward-word)
         (global-set-key (kbd "C-&lt;right&gt;") 'forward-word)
         (global-set-key (kbd "C-&lt;up&gt;")    'backward-paragraph)
         (global-set-key (kbd "C-&lt;down&gt;")  'forward-paragraph)

         (global-set-key (kbd "M-&lt;left&gt;")  'backward-word)
         (global-set-key (kbd "M-&lt;right&gt;") 'forward-word)         
         (message "Arrow keys enabled" ))))
&lt;/pre&gt;

Then I place (my-toggle-arrow-key-functions) in my .emacs file.

When I want the arrow keys back I just type “C-1 M-x my-toggle-arrow-key-functions ” and the arrow keys are back untill i type “M-x my-toggle-arrow-key-functions “.</description>
		<content:encoded><![CDATA[<p>I really like the key unbinding. I use the arrows to much too. But I don’t have your confidence so I wanted a safety net. I just created the following function to toggle the arrow keys on and off.</p>
<pre>
(defun my-toggle-arrow-key-functions (&amp;optional arg)
  "Enable or disable the arrow keys.
Called with no arguments disables the arrow keys.
Called with a non nil argument enables the arrow keys.

Used to force yourself to keep your hands on the home row for
basic navigation."
  (interactive "P")
  (cond ((null arg)
         (global-unset-key (kbd "&lt;left&gt;"))
         (global-unset-key (kbd "&lt;right&gt;"))
         (global-unset-key (kbd "&lt;up&gt;"))
         (global-unset-key (kbd "&lt;down&gt;"))

         (global-unset-key (kbd "C-&lt;left&gt;"))
         (global-unset-key (kbd "C-&lt;right&gt;"))
         (global-unset-key (kbd "C-&lt;up&gt;"))
         (global-unset-key (kbd "C-&lt;down&gt;"))

         (global-unset-key (kbd "M-&lt;left&gt;"))
         (global-unset-key (kbd "M-&lt;right&gt;"))
         (message "Arrow keys disabled"))
        (t
         (global-set-key (kbd "&lt;left&gt;")    'backward-char)
         (global-set-key (kbd "&lt;right&gt;")   'forward-char)
         (global-set-key (kbd "&lt;up&gt;")      'previous-line)
         (global-set-key (kbd "&lt;down&gt;")    'next-line)

         (global-set-key (kbd "C-&lt;left&gt;")  'backward-word)
         (global-set-key (kbd "C-&lt;right&gt;") 'forward-word)
         (global-set-key (kbd "C-&lt;up&gt;")    'backward-paragraph)
         (global-set-key (kbd "C-&lt;down&gt;")  'forward-paragraph)

         (global-set-key (kbd "M-&lt;left&gt;")  'backward-word)
         (global-set-key (kbd "M-&lt;right&gt;") 'forward-word)
         (message "Arrow keys enabled" ))))
</pre>
<p>Then I place (my-toggle-arrow-key-functions) in my .emacs file.</p>
<p>When I want the arrow keys back I just type “C-1 M-x my-toggle-arrow-key-functions ” and the arrow keys are back untill i type “M-x my-toggle-arrow-key-functions “.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete Wilson</title>
		<link>http://nflath.com/2009/08/easier-emacs/comment-page-1/#comment-262</link>
		<dc:creator>Pete Wilson</dc:creator>
		<pubDate>Fri, 28 Aug 2009 19:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=334#comment-262</guid>
		<description>how 'bout "&lt;right&gt;"</description>
		<content:encoded><![CDATA[<p>how &#8217;bout &#8220;&lt;right&gt;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete Wilson</title>
		<link>http://nflath.com/2009/08/easier-emacs/comment-page-1/#comment-261</link>
		<dc:creator>Pete Wilson</dc:creator>
		<pubDate>Fri, 28 Aug 2009 18:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=334#comment-261</guid>
		<description>Well that didn't work!  I guess I've got to escape the angle brackets.

How? 
like this "\"?</description>
		<content:encoded><![CDATA[<p>Well that didn&#8217;t work!  I guess I&#8217;ve got to escape the angle brackets.</p>
<p>How?<br />
like this &#8220;\&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete Wilson</title>
		<link>http://nflath.com/2009/08/easier-emacs/comment-page-1/#comment-260</link>
		<dc:creator>Pete Wilson</dc:creator>
		<pubDate>Fri, 28 Aug 2009 18:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=334#comment-260</guid>
		<description>I really like the key unbinding.  I use the arrows to much too.  But I don't have your confidence so I wanted a safety net.  I just created the following function to toggle the arrow keys on and off.

(defun my-toggle-arrow-key-functions (&amp;optional arg)
  "Enable or disable the arrow keys.
Called with no arguments disables the arrow keys.
Called with a non nil argument enables the arrow keys.

Used to force yourself to keep your hands on the home row for
basic navigation."
  (interactive "P")
  (cond ((null arg)  
         (global-unset-key (kbd ""))
         (global-unset-key (kbd ""))
         (global-unset-key (kbd ""))
         (global-unset-key (kbd ""))

         (global-unset-key (kbd "C-"))
         (global-unset-key (kbd "C-"))
         (global-unset-key (kbd "C-"))
         (global-unset-key (kbd "C-"))

         (global-unset-key (kbd "M-"))
         (global-unset-key (kbd "M-"))
         (message "Arrow keys disabled"))
        (t
         (global-set-key (kbd "")    'backward-char)
         (global-set-key (kbd "")   'forward-char)
         (global-set-key (kbd "")      'previous-line)
         (global-set-key (kbd "")    'next-line)

         (global-set-key (kbd "C-")  'backward-word)
         (global-set-key (kbd "C-") 'forward-word)
         (global-set-key (kbd "C-")    'backward-paragraph)
         (global-set-key (kbd "C-")  'forward-paragraph)

         (global-set-key (kbd "M-")  'backward-word)
         (global-set-key (kbd "M-") 'forward-word)         
         (message "Arrow keys enabled" ))))

Then I place (my-toggle-arrow-key-functions) in my .emacs file.

When I want the arrow keys back I just type "C-1 M-x my-toggle-arrow-key-functions " and the arrow keys are back untill i type "M-x my-toggle-arrow-key-functions ".</description>
		<content:encoded><![CDATA[<p>I really like the key unbinding.  I use the arrows to much too.  But I don&#8217;t have your confidence so I wanted a safety net.  I just created the following function to toggle the arrow keys on and off.</p>
<p>(defun my-toggle-arrow-key-functions (&amp;optional arg)<br />
  &#8220;Enable or disable the arrow keys.<br />
Called with no arguments disables the arrow keys.<br />
Called with a non nil argument enables the arrow keys.</p>
<p>Used to force yourself to keep your hands on the home row for<br />
basic navigation.&#8221;<br />
  (interactive &#8220;P&#8221;)<br />
  (cond ((null arg)<br />
         (global-unset-key (kbd &#8220;&#8221;))<br />
         (global-unset-key (kbd &#8220;&#8221;))<br />
         (global-unset-key (kbd &#8220;&#8221;))<br />
         (global-unset-key (kbd &#8220;&#8221;))</p>
<p>         (global-unset-key (kbd &#8220;C-&#8221;))<br />
         (global-unset-key (kbd &#8220;C-&#8221;))<br />
         (global-unset-key (kbd &#8220;C-&#8221;))<br />
         (global-unset-key (kbd &#8220;C-&#8221;))</p>
<p>         (global-unset-key (kbd &#8220;M-&#8221;))<br />
         (global-unset-key (kbd &#8220;M-&#8221;))<br />
         (message &#8220;Arrow keys disabled&#8221;))<br />
        (t<br />
         (global-set-key (kbd &#8220;&#8221;)    &#8216;backward-char)<br />
         (global-set-key (kbd &#8220;&#8221;)   &#8216;forward-char)<br />
         (global-set-key (kbd &#8220;&#8221;)      &#8216;previous-line)<br />
         (global-set-key (kbd &#8220;&#8221;)    &#8216;next-line)</p>
<p>         (global-set-key (kbd &#8220;C-&#8221;)  &#8216;backward-word)<br />
         (global-set-key (kbd &#8220;C-&#8221;) &#8216;forward-word)<br />
         (global-set-key (kbd &#8220;C-&#8221;)    &#8216;backward-paragraph)<br />
         (global-set-key (kbd &#8220;C-&#8221;)  &#8216;forward-paragraph)</p>
<p>         (global-set-key (kbd &#8220;M-&#8221;)  &#8216;backward-word)<br />
         (global-set-key (kbd &#8220;M-&#8221;) &#8216;forward-word)<br />
         (message &#8220;Arrow keys enabled&#8221; ))))</p>
<p>Then I place (my-toggle-arrow-key-functions) in my .emacs file.</p>
<p>When I want the arrow keys back I just type &#8220;C-1 M-x my-toggle-arrow-key-functions &#8221; and the arrow keys are back untill i type &#8220;M-x my-toggle-arrow-key-functions &#8220;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaron</title>
		<link>http://nflath.com/2009/08/easier-emacs/comment-page-1/#comment-258</link>
		<dc:creator>aaron</dc:creator>
		<pubDate>Fri, 28 Aug 2009 15:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=334#comment-258</guid>
		<description>This is a great list of bindings, especially the unbidnings.

I don't understand eval-and-replace.  I understood what it does, but I can't ever imagine needing to use it.  I often use C-u C-x C-e, but would never imagine deleting code I wrote.  What's the situation?</description>
		<content:encoded><![CDATA[<p>This is a great list of bindings, especially the unbidnings.</p>
<p>I don&#8217;t understand eval-and-replace.  I understood what it does, but I can&#8217;t ever imagine needing to use it.  I often use C-u C-x C-e, but would never imagine deleting code I wrote.  What&#8217;s the situation?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
