<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:html="http://www.w3.org/1999/html" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">
<channel>
   <title>TedRoden.com</title>
   <link>http://blog.tedroden.com</link>
   <description>This is Ted's blog</description>
   <language>en</language>
   <copyright>Copyright 2007 Ted Roden</copyright>
   <ttl>60</ttl>
   <pubDate>Wed, 03 Sep 2008 14:55 GMT</pubDate>
   <managingEditor>tedroden at gmail dot com</managingEditor>
   <generator>PyBlosxom http://pyblosxom.sourceforge.net/ 1.4.2 8/16/2007</generator>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ted-roden-emacs" type="application/rss+xml" /><item>
   <title>ShifD - Emacs (and vi) Key Commands</title>
   <guid isPermaLink="false">emacs/shifd_-_emacs</guid>
   <link>http://blog.tedroden.com/emacs/shifd_-_emacs.ejr</link>
   <description><![CDATA[
<img src="/images/shifd-emacs-keys.png" alt="emacs keys on shifd.com at tedroden.com" align="left" />

<p>I was able to distract the guys working on <a href="http://shifd.com">shifd</a> long enough to slide a couple of commits past them.</p>

<p>So for today, I'll just talk about one of the features I added when the rest of the staff wasn't looking. You can now edit and save shifd content using familiar key commands. <sup><a class="footref" name="fnr.1" href="#fn.1">1</a></sup></p>

<p>First, because it was easy, I added vi shortcuts. So <code>i</code> will put you in insert mode. It opens up the text box, focuses it and waits patiently. When you've added your text, you can hit <code>[escape] :wq</code> and it'll save and close it.</p>

<p>Adding vi shortcuts made me feel dirty, so I quickly added emacs commands too. The emacs version is pretty much only useful on a Mac, because control-s means something very different on windows/linux. To start a new shifd note, you can press <code>[control]-x [control]-f</code><sup><a class="footref" name="fnr.2" href="#fn.2">2</a></sup>. To save the note, press <code>[control]-x [control]-s</code>. Not bad, eh?</p>

<p>There are a couple other shortcuts as well. For example, <code>t</code> will show/hide the input box, but those aren't quite on the same level of nerdiness, so I won't mention them all here. <a href="http://shifd.com">Go try it out for yourself</a>.</p>


<hr />
<p class="footnote"><a class="footnum" name="fn.1" href="#fnr.1">1.</a>  This stuff, like most of the internet, is disabled in Internet Explorer.</p>

<p class="footnote"><a class="footnum" name="fn.2" href="#fnr.2">2.</a>  I know that this would generally prompt you in emacs, but you get the gist of it.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Wed, 03 Sep 2008 14:55 GMT</pubDate>
</item>
<item>
   <title>Google Region</title>
   <guid isPermaLink="false">emacs/google_region</guid>
   <link>http://blog.tedroden.com/emacs/google_region.ejr</link>
   <description><![CDATA[
<p>Somehow, this didn't occur to me until today: it would be really great to select some text and enter a key command to search for that text on google. It may have taken me a long time to realize I wanted something like that, but I've used it today more times than I'd like to admit.</p>

<p>Anyways, here's how to make that happen in emacs, complete with a &quot;control-c g&quot; shortcut.


    <style type="text/css">
    <!--
      pre {
        font-family: monaco, sans-serif;
        color: #bbb;
        color: #bbb;
        background-color: #000000;
      }
      .comment {
        /* font-lock-comment-face */
        color: #008ed1;
        color: #008ed1;
      }
      .comment-delimiter {
        /* font-lock-comment-delimiter-face */
        color: #008ed1;
        color: #008ed1;
      }
      .doc {
        /* font-lock-doc-face */
        color: #777;
        color: #777;
      }
      .function-name {
        /* font-lock-function-name-face */
        color: #55ff55;
        color: #55ff55;
      }
      .keyword {
        /* font-lock-keyword-face */
        color: #ff5555;
        color: #ff5555;
      }
      .string {
        /* font-lock-string-face */
        color: #ffff55;
        color: #ffff55;
      }
      .type {
        /* font-lock-type-face */
        color: #b9FC6D;
        color: #b9FC6D;
      }

      a {
        color: inherit;
        background-color: inherit;
        font: inherit;
        text-decoration: inherit;
      }
      a:hover {
        text-decoration: underline;
      }
    -->
    </style>

<pre class="code">
<span class="comment-delimiter">;; </span><span class="comment">google-region
</span>(<span class="keyword">defun</span> <span class="function-name">google-region</span> (<span class="type">&amp;optional</span> flags)
  <span class="doc">"Google the selected region"</span>
  (interactive)
  (<span class="keyword">let</span> ((query (buffer-substring (region-beginning) (region-end))))
    (browse-url (concat <span class="string">"http://www.google.com/search?ie=utf-8&amp;oe=utf-8&amp;q="</span> query))))
<span class="comment-delimiter">;; </span><span class="comment">press control-c g to google the selected region
</span>(global-set-key (kbd <span class="string">"C-c g"</span>) 'google-region)
</pre></p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Wed, 09 Jul 2008 05:17 GMT</pubDate>
</item>
<item>
   <title>Shifd from emacs</title>
   <guid isPermaLink="false">emacs/shifd_from_emacs</guid>
   <link>http://blog.tedroden.com/emacs/shifd_from_emacs.ejr</link>
   <description><![CDATA[
<p>I made a little extension for emacs so that I could <a href="http://shifd.com">shifd</a> things directly from inside the editor. Here's a video of it in action. If you're interested in the extension, let me know. I can make it available.</p>

<p><center>
<object width="451" height="294">	<param name="allowfullscreen" value="true" />	<param name="allowscriptaccess" value="always" />	<param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=1250054&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=ff9933&amp;fullscreen=1" />	<embed src="http://www.vimeo.com/moogaloop.swf?clip_id=1250054&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=ff9933&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="451" height="294"></embed></object><br /><a href="http://www.vimeo.com/1250054?pg=embed&sec=1250054">Emacs and Shifd</a> from <a href="http://www.vimeo.com/ted?pg=embed&sec=1250054">Ted Roden</a> on <a href="http://vimeo.com?pg=embed&sec=1250054">Vimeo</a>.
</center></p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Sun, 29 Jun 2008 03:36 GMT</pubDate>
</item>
<item>
   <title>goto-minibuffer</title>
   <guid isPermaLink="false">emacs/goto-minibuffer</guid>
   <link>http://blog.tedroden.com/emacs/goto-minibuffer.ejr</link>
   <description><![CDATA[
<p>I almost posted this yesterday, but I got stuck trying to explain when it's useful. Every example that I came up with seemed to have a perfectly acceptable workaround.</p>

<p>However, after another day of emacs usage, I decided that there are indeed times when you need to move the focus to the minibuffer window. Sometimes that is easier said than done. It's especially hard if you have a lot of windows open in one frame and move around a lot, particularly when you do that in the middle of entering a command in the minibuffer.</p>

<p>I couldn't find anything built in that would do that. So I wrote a tiny function to handle it. Without further ado, here is some elisp to move the focus directly to the minibuffer.


    <style type="text/css">
    <!--
      pre {
        font-family: monaco, sans-serif;
        color: #fff8dc;
        color: #fff8dc;
        background-color: #000000;
      }
      .doc {
        /* font-lock-doc-face */
        color: #ffa07a;
        color: #ffa07a;
      }
      .function-name {
        /* font-lock-function-name-face */
        color: #87cefa;
        color: #87cefa;
      }
      .keyword {
        /* font-lock-keyword-face */
        color: #00ffff;
        color: #00ffff;
      }
      .string {
        /* font-lock-string-face */
        color: #ffa07a;
        color: #ffa07a;
      }
/*      a {
        color: inherit;
        background-color: inherit;
        font: inherit;
        text-decoration: inherit;
      }
      a:hover {
        text-decoration: underline;
      } */
    -->
    </style>

<pre class="code">
(<span class="keyword">defun</span> <span class="function-name">teds-goto-minibuffer</span> ()
  <span class="doc">"Move cursor to minibuffer window"</span>
  (interactive)
  (select-window (minibuffer-window)))
(global-set-key (kbd <span class="string">"C-c m"</span>) 'teds-goto-minibuffer)
</pre></p>

<p>If you know of a simpler<sup><a class="footref" name="fnr.1" href="#fn.1">1</a></sup> way of doing this, please let me know.</p>


<hr />
<p class="footnote"><a class="footnum" name="fn.1" href="#fnr.1">1.</a>  Hitting control-o a bunch of times doesn't count as simple. We're talking about when you have a bunch of windows open.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Thu, 06 Mar 2008 15:49 GMT</pubDate>
</item>
<item>
   <title>Soxiam's Testimonial</title>
   <guid isPermaLink="false">emacs/soxiam_s_testimonial</guid>
   <link>http://blog.tedroden.com/emacs/soxiam_s_testimonial.ejr</link>
   <description><![CDATA[
<p><a href="http://soxiam.com">Sox</a> has long been my personal <a href="http://soxiam.com/post/27320410">motivational speaker</a>. His geek cred has recently gone through the roof; he's quoted directly on the aquamacs-devel mailing list.</p>

<table class="image" width="100%">
  <tr><td align="center"><img src="/images/sox-testimonial.png" alt="Grow Your Manhood" /></td></tr>
  <tr><td align="center" class="image-caption">Grow Your Manhood</td></tr>
</table>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Mon, 03 Mar 2008 14:38 GMT</pubDate>
</item>
<item>
   <title>Aquamacs 1.3</title>
   <guid isPermaLink="false">emacs/aquamacs_1.3</guid>
   <link>http://blog.tedroden.com/emacs/aquamacs_1.3.ejr</link>
   <description><![CDATA[
<p>After several long nights and weekends, I'm happy to say the new <a href="http://aquamacs.org/">Aquamacs.org</a> site has launched. This also happens to coincide (more or less) with the release of Aquamacs 1.3, so you should probably upgrade.</p>

<p>Around Christmas, I decided that I should try to time pushing the new site with the next release of the actual software. So I spent some time redesigning the site during my holiday break. After my initial mockups, I spent a lot of time on the development list <a href="http://sourceforge.net/mailarchive/forum.php?thread_name=CE80587C-5878-4C6A-A121-6B6BFBE3779A%40gmail.com&amp;forum_name=aquamacs-devel">finalizing the design</a> and <a href="http://sourceforge.net/mailarchive/forum.php?thread_name=C2B8FBC7-904E-4C65-AC80-E155C037E0FE%40gmail.com&amp;forum_name=aquamacs-devel">working out most of the quirks</a>.</p>

<p>I didn't save a lot of the iterations, but here's how it looked along the way. (Click for bigger images).


<table class="image" width="100%">
  <tr><td align="center"><a href="http://tedroden.com/images/aq-site-orig.png"><img src="http://tedroden.com/images/aq-site-orig-thumb.png" /></a></td></tr>
  <tr><td align="center" class="image-caption">This is how the site looked initially.</td></tr>
</table>



<table class="image" width="100%">
  <tr><td align="center"><a href="http://tedroden.com/images/aq-site-rev.png"><img src="http://tedroden.com/images/aq-site-rev-thumb.png" /></a></td></tr>
  <tr><td align="center" class="image-caption">My first mockup.</td></tr>
</table>



<table class="image" width="100%">
  <tr><td align="center"><a href="http://tedroden.com/images/aq-site-final.png"><img src="http://tedroden.com/images/aq-site-final-thumb.png" /></a></td></tr>
  <tr><td align="center" class="image-caption">The final version.</td></tr>
</table></p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Mon, 25 Feb 2008 15:04 GMT</pubDate>
</item>
<item>
   <title>Uptimes</title>
   <guid isPermaLink="false">emacs/uptimes</guid>
   <link>http://blog.tedroden.com/emacs/uptimes.ejr</link>
   <description><![CDATA[
<p>When I restart emacs (aquamacs) for whatever reason, I'm always curious to see how long it's been running. I've included the list of uptimes<sup><a class="footref" name="fnr.1" href="#fn.1">1</a></sup> below. My record for this computer seems to be 15 and a half days. I'm sure I can do better on other computers, but that's pretty good for a laptop that I abuse pretty regularly.</p>

<table class="image" width="100%">
  <tr><td align="center"><img src="http://tedroden-4.babycdn.com/emacs-uptimes.png" alt="Uptimes" /></td></tr>
  <tr><td align="center" class="image-caption">Uptimes</td></tr>
</table>

<hr />
<p class="footnote"><a class="footnum" name="fn.1" href="#fnr.1">1.</a>  If you have uptimes.el, and (require uptimes.el) in your .emacs file, <code>meta-x uptimes</code> will show you the uptimes screen.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Tue, 19 Feb 2008 00:09 GMT</pubDate>
</item>
<item>
   <title>Emacs Spreadsheet</title>
   <guid isPermaLink="false">emacs/emacs_spreadsheet</guid>
   <link>http://blog.tedroden.com/emacs/emacs_spreadsheet.ejr</link>
   <description><![CDATA[
<p>I'm constantly finding myself in situations where I need to do something on my computer, but I can't do in Emacs. Like, filling out text boxes on the web. Or posting to my blog. Or just using a shell.</p>

<p>Of course, time after time, I find out that I <em>can</em> use Emacs for these problems. For example, with <a href="https://addons.mozilla.org/firefox/addon/4125">It's all text</a>, I can edit form fields with Emacs. <a href="http://mwolson.org/projects/EmacsMuse.html">Muse mode</a> and a couple of scripts allows me to edit and post to <a href="http://tedroden.com">my blog</a>. And <a href="http://www.emacswiki.org/cgi-bin/wiki/CategoryEshell">eshell</a> has changed my life as far as using the command line goes.</p>

<p>The latest problem I faced was that I needed to use a spreadsheet. I'm not a spreadsheet power-user, I just needed something to help me visualize a few simple calculations. I wanted to tweak a number here, a percent there and see all the numbers change. Perfect job for a spreadsheet. But how the heck do you do it in Emacs? Simple, <a href="http://www.emacswiki.org/cgi-bin/wiki/SimpleEmacsSpreadsheet">ses-mode</a>. It does everything I need for a basic spreadsheet, and it's in Emacs. Either you know why this is a good thing, or you totally don't. There is very little middle-ground.</p>

<p>With ses-mode, you can deal with ranges of cells, do all kinds of calculations and if you install the right modes, you can even graph it with <a href="http://www.eecs.ucf.edu/~leavens/emacs/eieio/chart.el">pretty charts</a>. I haven't tried that, but it sounds awesome.</p>

<p>Anyways, here's a screen shot of an example spreadsheet inside Emacs. You can even see the cell's formula in the mini-buffer, in lisp. So cool!</p>

<table class="image" width="100%">
  <tr><td align="center"><img src="http://tedroden-3.babycdn.com/emacs-spreadsheet.png" alt="&quot;I'm a business man, I need a spreadsheet&quot;" /></td></tr>
  <tr><td align="center" class="image-caption">&quot;I'm a business man, I need a spreadsheet&quot;</td></tr>
</table>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Wed, 12 Dec 2007 21:21 GMT</pubDate>
</item>
<item>
   <title>Writing a book</title>
   <guid isPermaLink="false">emacs/writing_a_book</guid>
   <link>http://blog.tedroden.com/emacs/writing_a_book.ejr</link>
   <description><![CDATA[
<p>A few months ago, I decided I needed to write a book. I've never written a book before, but I haven't done a lot of things before, so why should never having done it stop me. So I got started. I researched companies, figured out how many books I'd need to sell to make it worth my while, realized that I could do that, and got started. I wrote... about 3 or 4 chapters.</p>

<p>Then I found out someone whose <a href="http://sachachua.com/notebook/wiki/today.php">blog</a> that I read was writing a very similar book. Too similar in fact. I mean, if I read someone's blog, doesn't that mean that others read it too? Well, I decided that I have <a href="http://vimeo.com/">enough</a> <a href="http://grablr.com/">on</a> <a href="http://screep.com/">my</a> plate, and that I'd rather read the book than write it. So I haven't touched it since then. (Despite, having those chapters written, they're solid gold I tell you! GOLD!)</p>

<p>I'm super happy to know a book like it is getting written. If it isn't as good as I can do, then I'll write it myself, otherwise I can't wait to read it. So, I'm officially putting in my notice that I am going to pre-order it.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Sat, 01 Dec 2007 05:59 GMT</pubDate>
</item>
<item>
   <title>Aquamacs File System Coding</title>
   <guid isPermaLink="false">emacs/aquamacs_file_system_coding</guid>
   <link>http://blog.tedroden.com/emacs/aquamacs_file_system_coding.ejr</link>
   <description><![CDATA[
<p>At <a href="http://tedroden.com/vimeo">work</a> I'm always downloading strange file formats, or creating files with weird names to test our system. Doing this, I noticed that aquamacs was having trouble with some of them and I couldn't figure out why. Until today! Previously, one of my test files was pretty messed up via dired and eshell, take a look:</p>

<table class="image" width="100%">
  <tr><td align="center"><img src="/images/aquamacs-encoding-bad.jpg" alt="Bad!" /></td></tr>
  <tr><td align="center" class="image-caption">Bad!</td></tr>
</table>

<p>But all it takes is a quick addition to your .emacs file and it's fixed! You just need to specify the &quot;file name system coding,&quot; and there is even one included with aquamacs that is designed for the mac file system. Just add the following line to your .emacs file and you're all set:


    <style type="text/css">
    <!--
      pre {
        font-family: monaco, sans-serif;
        color: #ffffff;
        color: #ffffff;
        background-color: #000000;
      }
    -->
    </style>

<pre class="code">
(set-file-name-coding-system 'utf-8m)</pre></p>

<p>After that, everything is rosy.</p>

<table class="image" width="100%">
  <tr><td align="center"><img src="/images/aquamacs-encoding-good.jpg" alt="Good!" /></td></tr>
  <tr><td align="center" class="image-caption">Good!</td></tr>
</table>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Tue, 27 Nov 2007 16:36 GMT</pubDate>
</item>
</channel>
</rss>
