<?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, 29 Jul 2009 13:53 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" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
   <title>It's not the THE new icon</title>
   <guid isPermaLink="false">emacs/it_s_the_the_new_icon</guid>
   <link>http://blog.tedroden.com/emacs/it_s_the_the_new_icon.ejr</link>
   <description><![CDATA[
<table class="image" width="100%">
  <tr><td align="center"><img src="http://blog.tedroden.com/images/emacs-icon-explain.jpg" alt="More on the Emacs icon" /></td></tr>
  <tr><td align="center" class="image-caption">More on the Emacs icon</td></tr>
</table>

<p>I've had a couple of <a href="http://twitter.com/tedroden">twitter</a> messages and email responses about my post to create a new Emacs icon. To be clear about <a href="http://blog.tedroden.com/emacs/a_new_emacs_icon.ejr">that post</a>, I'm not looking to build <em>the</em> new Emacs icon. I'm interesting in building <em>a</em> new Emacs icon. I just want a new icon that I can use. Something more modern and that I'm comfortable keeping on my screen all day long. Something that people will want to use, even if they don't use Emacs.</p>

<p>See, the problem with building an official new icon is that there are all kinds of considerations like &quot;branding,&quot; &quot;consistency,&quot; &quot;accessibility&quot; and the whole Emacs has a 100+ year history thing. I love Emacs, and I'm glad it has such a rich history and a powerful &quot;brand,&quot; but I'm not interested wading into those waters.</p>

<p>I'm interested in creating a separate, totally unofficial icon. I'm suggesting we reimagine the whole thing from the ground up. What would an icon look like for the Emacsen of today. The not-quite-text-editor, not-quite-operating-system, passable-tetris-client, etc. What does <em>that</em> icon look like? Does it have an animal mascot of some kind? (I'm nixing the GNU/Bison thing). Is it abstract? I don't know... But we should try to figure it out.</p>

<p><a href="http://www.20seven.org/">Greg Newman</a> has volunteered his wonderful artistic abilities in the coming weeks, so something is going to happen. But if you have any thoughts, please blog it, join the <a href="http://search.twitter.com/search?q=emacs+tedroden">twitter conversation</a> or <a href="http://blog.tedroden.com">email me</a> directly.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Wed, 29 Jul 2009 13:53 GMT</pubDate>
</item>
<item>
   <title>A New Emacs Icon</title>
   <guid isPermaLink="false">emacs/a_new_emacs_icon</guid>
   <link>http://blog.tedroden.com/emacs/a_new_emacs_icon.ejr</link>
   <description><![CDATA[
<table class="image" width="100%">
  <tr><td align="center"><img src="http://blog.tedroden.com/images/emacs-icon.jpg" alt="A new Emacs icon" /></td></tr>
  <tr><td align="center" class="image-caption">A new Emacs icon</td></tr>
</table>
I'm inches away from paying someone to create an Emacs icon for me to use. I'm not a big fan of the official icons and I'm tired of using fakes.

<p>I'd make it open source and free for all to use, anybody else interested?</p>

<p>Let me know via <a href="http://twitter.com/tedroden">@tedroden</a> or <a href="http://blog.tedroden.com">email</a>.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Tue, 28 Jul 2009 15:42 GMT</pubDate>
</item>
<item>
   <title>Emacs 23: File name [Confirm]</title>
   <guid isPermaLink="false">emacs/emacs_23__file_name__confirm_</guid>
   <link>http://blog.tedroden.com/emacs/emacs_23__file_name__confirm_.ejr</link>
   <description><![CDATA[
<p>In what is turning out to be a series of posts on <a href="http://blog.tedroden.com">great new features in emacs 23</a>, I've got another one today.</p>

<p>When you hit <code>C-x C-f somefile TAB RET</code>, normally the filename will be completed and you'll open the correct file. However, in past emacs versions, if there were two files with different extensions (say somefile.c and somefile.h), it would open up an empty buffer called &quot;somefile.&quot;</p>

<p>In the emacs 23, when you do the same thing, it will ask you to confirm that you actually want to open this file. It's saved me from opening a ton of non-existent files.</p>

<table class="image" width="100%">
  <tr><td align="center"><img src="http://blog.tedroden.com/images/emacs-23-confirm.png" alt="Are you sure?" /></td></tr>
  <tr><td align="center" class="image-caption">Are you sure?</td></tr>
</table>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Sun, 26 Jul 2009 03:00 GMT</pubDate>
</item>
<item>
   <title>Emacs 23: Smarter window splitting</title>
   <guid isPermaLink="false">emacs/emacs_23__smarter_window_splitting</guid>
   <link>http://blog.tedroden.com/emacs/emacs_23__smarter_window_splitting.ejr</link>
   <description><![CDATA[
<table class="image" width="100%">
  <tr><td align="center"><img src="http://blog.tedroden.com/images/emacs-23-window-splitting.jpg" alt="Vertical window spliting in Emacs 23" /></td></tr>
  <tr><td align="center" class="image-caption">Vertical window spliting in Emacs 23</td></tr>
</table>

<p>As I've <a href="http://blog.tedroden.com/emacs/nightlies__best_feature.ejr">mentioned before</a>, I've been using the Emacs nightlies and despite having to work through a few <a href="http://blog.tedroden.com/emacs/ns-popup-frame.ejr">configuration issues</a>, I've been enjoying many of the new features I've been noticing.</p>

<p>One of the things I noticed right away, was how much smarter emacs was about splitting and opening new windows when it needed to prompt me for something. For example, when I do <code>C-x C-f TAB TAB</code>, emacs has always split my screen in half horizontally. However, now it seems to recognize when I've got a super wide window and split it vertically. It's a much better experience.</p>

<p>Kudos to whoever did that... even if it was a while ago and I hadn't noticed in previous emacs versions.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Sat, 25 Jul 2009 00:13 GMT</pubDate>
</item>
<item>
   <title>Nightlies: Best Feature</title>
   <guid isPermaLink="false">emacs/nightlies__best_feature</guid>
   <link>http://blog.tedroden.com/emacs/nightlies__best_feature.ejr</link>
   <description><![CDATA[
<p>As <a href="http://blog.tedroden.com/emacs/ns-popup-frame.ejr">I mentioned before</a>, I've been using the nightlies of emacs 23 lately. It's good stuff, I have new favorite features almost hourly. Right now, I have a couple favorites that are both part of eshell.</p>

<p>First, eshell now handles C-a like you expect. Previously, pressing C-a brought you back to the total beginning of the line, before your prompt. Now it brings you back to the end of the prompt, exactly like any regular shell.</p>

<p>Second is a feature this one will probably let me stay in eshell more than I already do. You can now redirect output to a file. Before, when you did <code> date > thecurrentdate.txt</code> it would tell you that you can't redirect output like that. Not anymore! That works like a charm now.</p>

<p>These two little things make eshell feel so much more robust. What else am I missing?</p>

<p>Now, if only git would work without telling me &quot;WARNING: terminal is not fully functional&quot; ... but it's time I got comfortable with vc-mode anyways.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Thu, 23 Jul 2009 02:38 GMT</pubDate>
</item>
<item>
   <title>Stop opening new frames in Emacs 23</title>
   <guid isPermaLink="false">emacs/ns-popup-frame</guid>
   <link>http://blog.tedroden.com/emacs/ns-popup-frame.ejr</link>
   <description><![CDATA[
<center><img src="/images/ns-popup-frames.jpg" alt="NS Frame customization" /></center>

<p>I've recently starting using some <a href="http://atomized.org/wp-content/cocoa-emacs-nightly/">cocoa nightlies of Emacs 23</a> as my main editor. It's a bit crashy in places and it took some fixing of my main config files, but it's a lot of fun.</p>

<p>My biggest gripe with it has been how it opens files. Sure, <code>C-x C-f</code> works as you'd expect, but something changed with the way it opens files in other ways. For example, when you drag and drop a file onto the dock icon, it opens the file in a new frame. It also opens files in a new frame when I use <a href="http://blog.tedroden.com/emacs/launching_aquamacs.ejr">my handy command line script</a> (which essentially calls open -a).</p>

<p>I know aquamacs has done this for a while, but I always hated it. So I was esspecially disheartened to see this behaviour make it into standard Emacs... especially since I couldn't figure out how to fix it.</p>

<p>Well, after asking in irc, <a href="http://edward.oconnor.cx/">hober</a> suggested that I do <code>(global-set-key drag-and-drop-something-or-other 'ns-something-or-other)</code>. This led me to try <code>M-x customize-group RET ns</code>. Naturally that worked and I found <em>Ns Pop Up Frames</em>. Set that to Never and you're good to go. I'm assuming you could also just do this in your .emacs: <code>(setq ns-pop-up-frames nil)</code>.</p>

<p>Something new every day.</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Thu, 23 Jul 2009 01:10 GMT</pubDate>
</item>
<item>
   <title>Text Expander In Emacs</title>
   <guid isPermaLink="false">emacs/textexpand_emacs</guid>
   <link>http://blog.tedroden.com/emacs/textexpand_emacs.ejr</link>
   <description><![CDATA[
<p>TextExpander is a great little OSX utility that reads in all the text you type and based on certain phrases, inserts other phrases.</p>

<p>For example, you could set it up to correct change &quot;<em>teh&quot;</em> to &quot;<em>the.</em>&quot; Or you could set it up to take the word &quot;sig&quot; and expand it to be:</p>

<div class="blockquote">
<p class="quoted">Thanks for all the fish,
Ted Roden</p>
</div>

<p>You get the idea.</p>

<p>The only problem with this software is that it's kind of a hack. It inserts the replacement text by emulating a Command-v (paste). The offically supported solution is to remap M-v to yank. But any self respecting emacs user who would remap page up should just go back to using vi.</p>

<p>So I created a tiny bit of elisp to import your TextExpander snippets as abbreviations in abbrev-mode. This way, you can configure all of your snippets in one place and still have them work in emacs.</p>

<p>Installation is simple:</p>

<ul>
<li>Setup TextExpander to &quot;Expand In&quot; &quot;All Applications, except&quot; and check Emacs.</li>
<li><a href="http://github.com/tedroden/textexpander-sync-el/tree/master">Download my elisp code</a>.</li>
<li>Run M-x textexpander-sync</li>
<li>That's it.</li>
</ul>

<p>Let me know what you think!</p>

]]></description>
   <category domain="http://blog.tedroden.com" />
   <pubDate>Tue, 21 Jul 2009 02:43 GMT</pubDate>
</item>
<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>
</channel>
</rss>
