<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brett Hutley&#039;s Blog &#187; Emacs</title>
	<atom:link href="http://bretthutley.com/tag/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://bretthutley.com</link>
	<description>Home on the Digital Range</description>
	<lastBuildDate>Mon, 23 Jan 2012 21:21:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Emacs and Kanban</title>
		<link>http://bretthutley.com/2011/11/21/emacs-and-kanban/</link>
		<comments>http://bretthutley.com/2011/11/21/emacs-and-kanban/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 12:54:43 +0000</pubDate>
		<dc:creator>brett</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[kanban]]></category>
		<category><![CDATA[org-mode]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">https://bretthutley.com/?p=394</guid>
		<description><![CDATA[Bryan Morris has a post about how he has set up Emacs using org-mode to implement a Kanban board. He uses table mode within org-mode, and hyper-linking to link items within the table, to actual org-mode tasks. To me, this setup seems a little clunky, so I thought I'd describe my current system. To me, [...]


Related posts:<ol><li><a href='http://bretthutley.com/2011/05/30/micro-boxing-for-productivity-3/' rel='bookmark' title='Micro-boxing for productivity'>Micro-boxing for productivity</a></li>
<li><a href='http://bretthutley.com/programming/emacs/integrating-emacs-and-xcode/' rel='bookmark' title='Integrating Emacs and XCode'>Integrating Emacs and XCode</a></li>
<li><a href='http://bretthutley.com/2009/11/17/emacs-and-rails/' rel='bookmark' title='Emacs and Ruby on Rails'>Emacs and Ruby on Rails</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.agilesoc.com/2011/08/08/emacs-org-mode-kanban-pomodoro-oh-my/">Bryan Morris has a post</a> about how he has set up Emacs using <a href="http://orgmode.org/">org-mode</a> to implement a Kanban board. He uses table mode within org-mode, and  hyper-linking to link items within the table, to actual org-mode tasks. To me, this setup seems a little clunky, so I thought I'd describe my current system.</p>
<p><span id="more-394"></span></p>
<p>To me, the central point of Kanban is to keep the Work-in-Progress queue small to optimize your state of flow. I have a "backlog.org" org-mode file in which I keep track of all my tasks, large or small. Any new tasks go in here.</p>
<p>I have a keystroke set up in Emacs that will open my to-do file for the day. All to-do files live in a common directory, are named "YYYYMMDD.todo", and are opened in org-mode. From my backlog file, I transfer a small number of items to my daily to-do file (usually 2 or 3). I then concentrate on these items until they are complete. Only when they are all marked as DONE, CANCELLED or WAITING do I move another couple of items to the daily to-do list.</p>
<p>I also try and time-box throughout the day as rigorously as I can. To do this, I use the <a href="http://www.dueapp.com/">Due app</a> on my iPhone. This system has been working really well for me.</p>


<p>Related posts:<ol><li><a href='http://bretthutley.com/2011/05/30/micro-boxing-for-productivity-3/' rel='bookmark' title='Micro-boxing for productivity'>Micro-boxing for productivity</a></li>
<li><a href='http://bretthutley.com/programming/emacs/integrating-emacs-and-xcode/' rel='bookmark' title='Integrating Emacs and XCode'>Integrating Emacs and XCode</a></li>
<li><a href='http://bretthutley.com/2009/11/17/emacs-and-rails/' rel='bookmark' title='Emacs and Ruby on Rails'>Emacs and Ruby on Rails</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bretthutley.com/2011/11/21/emacs-and-kanban/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogging Process</title>
		<link>http://bretthutley.com/2011/11/05/blogging-process/</link>
		<comments>http://bretthutley.com/2011/11/05/blogging-process/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 16:40:12 +0000</pubDate>
		<dc:creator>brett</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[evernote]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">https://bretthutley.com/?p=363</guid>
		<description><![CDATA[I have been meaning to blog more for ages. I have had a blog on the internet since early 1990 in one form or other, but I just tend to do sporadic blogging. Every so often I get fired up with communicating and write some blog posts, and then my enthusiam wanes for a while, [...]


Related posts:<ol><li><a href='http://bretthutley.com/programming/emacs/integrating-emacs-and-xcode/' rel='bookmark' title='Integrating Emacs and XCode'>Integrating Emacs and XCode</a></li>
<li><a href='http://bretthutley.com/programming/emacs/opening-a-cobjective-cc-header-file-in-emacs/' rel='bookmark' title='Opening a header file in Emacs'>Opening a header file in Emacs</a></li>
<li><a href='http://bretthutley.com/2011/11/21/emacs-and-kanban/' rel='bookmark' title='Emacs and Kanban'>Emacs and Kanban</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have been meaning to blog more for ages. I have had a blog on the internet since early 1990 in one form or other, but I just tend to do sporadic blogging. Every so often I get fired up with communicating and write some blog posts, and then my enthusiam wanes for a while, and my writing tails off.</p>
<p><span id="more-363"></span></p>
<p>Throughout 2011 though, I have written a paragraph each and every day in my iPhone. Kind of a mini-diary. It's been the longest period of regular writing that I have ever had. The factor that's made me write regularly for so long is that I put a repeating reminder in my iPhone. At 4:45pm each day my phone rings a bell, which reminds me that I need to write down my <a href="http://www.momentoapp.com/">Momento</a> for the day.</p>
<p>Now I'm trying to apply this same technique to my blogging - setting aside a time to write, and writing a blog post each day.</p>
<h2>Capturing Information</h2>
<p>I use <a href="http://www.evernote.com/">Evernote</a> to capture information throughout the day, especially interesting articles I read online. Within Safari, I can highlight the text I want to capture, press Cmd-C to copy it, and then press Ctrl-Cmd-V to paste it to a new note in Evernote. It's fast, and it also saves the URL for attribution</p>
<h2>Emacs - org-mode and markdown</h2>
<p>When I'm ready to write, I start off by creating a directory to write in. In fact, I have an Emacs function that creates the directory for me, along with an <a href="http://orgmode.org/">org-mode</a> file, and a <a href="http://jblevins.org/projects/markdown-mode/">markdown</a> file. The org-mode file is where I write the skeleton of the post, and the markdown file is where I write the prose. Here is the emacs lisp code that sets me up for blogging:</p>
<pre class="lisp">&nbsp;
<span style="color: #66cc66;">&#40;</span>defvar bh-blog-article-dir <span style="color: #66cc66;">&#40;</span>expand-file-<span style="color: #b1b100;">name</span> <span style="color: #ff0000;">&quot;~/Dropbox/docs/blog-posts&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> bh-blog-article-start <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">let</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>topic-<span style="color: #b1b100;">name</span> <span style="color: #66cc66;">&#40;</span>read-string <span style="color: #ff0000;">&quot;Topic: &quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#40;</span>post-dir <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> base-post-topic <span style="color: #66cc66;">&#40;</span>mapconcat <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">function</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">lambda</span> <span style="color: #66cc66;">&#40;</span>x<span style="color: #66cc66;">&#41;</span> x<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>  <span style="color: #66cc66;">&#40;</span>split-string topic-<span style="color: #b1b100;">name</span><span style="color: #66cc66;">&#41;</span> <span style="color: #ff0000;">&quot;-&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> post-dir  <span style="color: #66cc66;">&#40;</span>concat bh-blog-article-dir <span style="color: #ff0000;">&quot;/&quot;</span> <span style="color: #66cc66;">&#40;</span>format-time-string <span style="color: #ff0000;">&quot;%Y%m%d&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #ff0000;">&quot;-&quot;</span> base-post-topic<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>make-directory post-dir<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>find-file <span style="color: #66cc66;">&#40;</span>concat post-dir <span style="color: #ff0000;">&quot;/&quot;</span> base-post-topic <span style="color: #ff0000;">&quot;.org&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>find-file-other-window <span style="color: #66cc66;">&#40;</span>concat post-dir <span style="color: #ff0000;">&quot;/&quot;</span> base-post-topic <span style="color: #ff0000;">&quot;.md&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#41;</span>
&nbsp;</pre>
<h2>Uploading</h2>
<p>When a post is ready to be uploaded, I have a Python script that converts the markdown file to HTML format, extracts the first H1 heading in the HTML to use as the post title, and then uploads the post to my blog.</p>


<p>Related posts:<ol><li><a href='http://bretthutley.com/programming/emacs/integrating-emacs-and-xcode/' rel='bookmark' title='Integrating Emacs and XCode'>Integrating Emacs and XCode</a></li>
<li><a href='http://bretthutley.com/programming/emacs/opening-a-cobjective-cc-header-file-in-emacs/' rel='bookmark' title='Opening a header file in Emacs'>Opening a header file in Emacs</a></li>
<li><a href='http://bretthutley.com/2011/11/21/emacs-and-kanban/' rel='bookmark' title='Emacs and Kanban'>Emacs and Kanban</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bretthutley.com/2011/11/05/blogging-process/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Emacs cmd-key on Mac</title>
		<link>http://bretthutley.com/2010/07/04/emacs-cmd-key-on-mac/</link>
		<comments>http://bretthutley.com/2010/07/04/emacs-cmd-key-on-mac/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 16:38:15 +0000</pubDate>
		<dc:creator>brett</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Mac OS/X]]></category>

		<guid isPermaLink="false">http://www.bretthutley.com/?p=247</guid>
		<description><![CDATA[Emacs on my Macbook Pro uses the "alt" key (the one to the left of the "cmd" key) to be the Alt (meta) key when doing things like Alt-Backspace to delete backwards by word. This is quite annoying for me as I naturally try and use the command key for this. To fix this put [...]


Related posts:<ol><li><a href='http://bretthutley.com/programming/emacs/integrating-emacs-and-xcode/' rel='bookmark' title='Integrating Emacs and XCode'>Integrating Emacs and XCode</a></li>
<li><a href='http://bretthutley.com/programming/emacs/using-the-remembrance-agent-with-emacs/' rel='bookmark' title='Using The Remembrance Agent with Emacs'>Using The Remembrance Agent with Emacs</a></li>
<li><a href='http://bretthutley.com/2009/11/17/emacs-and-rails/' rel='bookmark' title='Emacs and Ruby on Rails'>Emacs and Ruby on Rails</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Emacs on my Macbook Pro uses the "alt" key (the one to the left of the "cmd" key) to be the Alt (meta) key when doing things like Alt-Backspace to delete backwards by word. This is quite annoying for me as I naturally try and use the command key for this. To fix this put the following in your .emacs file.</p>
<pre>&nbsp;
(setq mac-command-modifier 'meta)
&nbsp;</pre>


<p>Related posts:<ol><li><a href='http://bretthutley.com/programming/emacs/integrating-emacs-and-xcode/' rel='bookmark' title='Integrating Emacs and XCode'>Integrating Emacs and XCode</a></li>
<li><a href='http://bretthutley.com/programming/emacs/using-the-remembrance-agent-with-emacs/' rel='bookmark' title='Using The Remembrance Agent with Emacs'>Using The Remembrance Agent with Emacs</a></li>
<li><a href='http://bretthutley.com/2009/11/17/emacs-and-rails/' rel='bookmark' title='Emacs and Ruby on Rails'>Emacs and Ruby on Rails</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bretthutley.com/2010/07/04/emacs-cmd-key-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DEVONthink and Emacs Completion</title>
		<link>http://bretthutley.com/2009/11/18/devonthink-and-emacs-completion/</link>
		<comments>http://bretthutley.com/2009/11/18/devonthink-and-emacs-completion/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 23:26:56 +0000</pubDate>
		<dc:creator>brett</dc:creator>
				<category><![CDATA[Useful]]></category>
		<category><![CDATA[Annoyance]]></category>
		<category><![CDATA[DEVONthink]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Hotkey]]></category>
		<category><![CDATA[Keyboard Shortcut]]></category>

		<guid isPermaLink="false">http://www.bretthutley.com/?p=235</guid>
		<description><![CDATA[DEVONthink has the annoying habit of starting up if I try to complete a bit of text in Emacs on my Mac. By default DEVONthink is bound in the "Services" menu to Apple-Slash (Command-Slash). To fix this, open up "/Applications/DEVONthink Pro.app/Contents/Info.plist" in Emacs. Do a search for "NSKeyEquivalent" until you see an entry that looks [...]


Related posts:<ol><li><a href='http://bretthutley.com/2010/07/04/emacs-cmd-key-on-mac/' rel='bookmark' title='Emacs cmd-key on Mac'>Emacs cmd-key on Mac</a></li>
<li><a href='http://bretthutley.com/2009/08/21/getting-postfix-sending-email-on-your-mac/' rel='bookmark' title='Getting Postfix sending email on your Mac'>Getting Postfix sending email on your Mac</a></li>
<li><a href='http://bretthutley.com/programming/emacs/integrating-emacs-and-xcode/' rel='bookmark' title='Integrating Emacs and XCode'>Integrating Emacs and XCode</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>DEVONthink has the annoying habit of starting up if I try to complete a bit of text in Emacs on my Mac. By default DEVONthink is bound in the "Services" menu to Apple-Slash (Command-Slash). To fix this, open up "/Applications/DEVONthink Pro.app/Contents/Info.plist" in Emacs. Do a search for "NSKeyEquivalent" until you see an entry that looks like this:<br />
<span id="more-235"></span></p>
<pre class="xml">
        &lt;key&gt;NSKeyEquivalent&lt;/key&gt;
             &lt;dict&gt;
                 &lt;key&gt;default&lt;/key&gt;
                 &lt;string&gt;/&lt;/string&gt;
             &lt;/dict&gt;
             &lt;key&gt;NSMenuItem&lt;/key&gt;
             &lt;dict&gt;
                 &lt;key&gt;default&lt;/key&gt;
                 &lt;string&gt;DEVONthink Pro/Lookup...&lt;/string&gt;
             &lt;/dict&gt;
</pre>
<p>Delete the "/" character from the "&lt;string&gt;/&lt;/string&gt;" line. Once you log out and log back in, this should be fixed. Save a copy of this file before you change it, just in case you screw up.</p>
<div><span style="font-family: 'Lucida Grande', Verdana, Arial, 'Bitstream Vera Sans', sans-serif;"><span style="white-space: pre-wrap;"><br />
</span></span></div>


<p>Related posts:<ol><li><a href='http://bretthutley.com/2010/07/04/emacs-cmd-key-on-mac/' rel='bookmark' title='Emacs cmd-key on Mac'>Emacs cmd-key on Mac</a></li>
<li><a href='http://bretthutley.com/2009/08/21/getting-postfix-sending-email-on-your-mac/' rel='bookmark' title='Getting Postfix sending email on your Mac'>Getting Postfix sending email on your Mac</a></li>
<li><a href='http://bretthutley.com/programming/emacs/integrating-emacs-and-xcode/' rel='bookmark' title='Integrating Emacs and XCode'>Integrating Emacs and XCode</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bretthutley.com/2009/11/18/devonthink-and-emacs-completion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

