<?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/"
	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>The days we watch the blue sky &#187; Emacs</title>
	<atom:link href="http://vocalfolds.wordpress.com/category/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://vocalfolds.wordpress.com</link>
	<description>twin of vocalfolds.blogspot.com</description>
	<lastBuildDate>Thu, 09 Feb 2012 22:05:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vocalfolds.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The days we watch the blue sky &#187; Emacs</title>
		<link>http://vocalfolds.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vocalfolds.wordpress.com/osd.xml" title="The days we watch the blue sky" />
	<atom:link rel='hub' href='http://vocalfolds.wordpress.com/?pushpress=hub'/>
		<item>
		<title>MobileOrg is cool</title>
		<link>http://vocalfolds.wordpress.com/2012/02/08/mobileorg-is-cool-2/</link>
		<comments>http://vocalfolds.wordpress.com/2012/02/08/mobileorg-is-cool-2/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 04:55:07 +0000</pubDate>
		<dc:creator>vocalfolds</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://vocalfolds.wordpress.com/?p=94</guid>
		<description><![CDATA[Recently I began to use mobileOrg to synchronize my org file with iphone. It works great. Now I can look at my schedule and use Capture in iphone. The Work flow like this: For emacs to iphone, Run in emacs: M-x org-mobile-push or C-c C-x RET p This will push org file to a Dropbox [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=94&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Recently I began to use mobileOrg to synchronize my org file with<br />
iphone. It works great. Now I can look at my schedule and use Capture in<br />
iphone. The Work flow like this:</p>
<p>For emacs to iphone,</p>
<ul>
<li>Run in emacs:</li>
</ul>
<pre class="src src-sh">M-x org-mobile-push</pre>
<p>or C-c C-x RET p</p>
<p>This will push org file to a Dropbox folder which share with iphone</p>
<ul>
<li>Click sync button in iphone and thus update the org-file in iphone</li>
</ul>
<p>For iphone to emacs,</p>
<ul>
<li>Add note in Iphone</li>
<li>Run in emacs:</li>
</ul>
<pre class="src src-sh">M-x org-mobile-pull</pre>
<p>or C-c C-x RET g</p>
<p>Now notes are located in flagged.org, you can open it and use C-c C-w<br />
to refile to other places.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vocalfolds.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vocalfolds.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=94&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vocalfolds.wordpress.com/2012/02/08/mobileorg-is-cool-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/544ad02b8c4d83b732b065245e9e5646?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vocalfolds</media:title>
		</media:content>
	</item>
		<item>
		<title>How to use org-mode to write blog</title>
		<link>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2/</link>
		<comments>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 04:51:00 +0000</pubDate>
		<dc:creator>vocalfolds</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2/</guid>
		<description><![CDATA[I begin to write blog recently, naturally I choose org-mode to do this task. However, org-mode export to html with whole page of html tags with head and body. While writing to blog, we only need the body part. When I just copy the body part, I loose its format. If I copy the whole [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=30&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I begin to write blog recently, naturally I choose org-mode to do this<br />
task. However, org-mode export to html with whole page of html tags with<br />
head and body. While writing to blog, we only need the body part. When I<br />
just copy the body part, I loose its format. If I copy the whole html,<br />
blogspot general some unwanted space, title, etc and I also lost title<br />
link. I read <a href="http://www.w3schools.com">w3schools.com</a> about html and css and realized that if I can<br />
change the template of <a href="http://www.blogspot.com">blogstpot.com</a>, add those css, I should be able to<br />
keep the format. Read google&#8217;s own online help, and then I changed my<br />
template, done! Only thing left is that I still need manually copy body<br />
part. After a long search, I known that there is a variable<br />
<i>org-export-as-html</i> whose fifth option can be set to <i>body-only</i><br />
(refer to discuss part in  <a href="http://emacs-fu.blogspot.com/2009/05/writing-and-blogging-with-org-mode.html">EMACS-FU</a> ). But I known very little about<br />
lisp. A promising setting is from <a href="http://comments.gmane.org/gmane.emacs.orgmode/18069">http://comments.gmane.org/gmane.emacs.orgmode/18069</a></p>
<pre class="src src-emacs-lisp">,----
|   (setq html (org-export-region-as-html beg end t 'string))
`----
</pre>
<p>I tried substituting the <i>string</i> with <i>body-only</i>, but it&#8217;s wrong.<br />
Thanks to <a href="http://tkpapp.blogspot.com/2009/12/syntax-highlighting-with-org-mode.html">Tamas K Papp&#8217;s blog</a>, who gives the whole solution. The only<br />
thing I didn&#8217;t follow his solution is CSS apart for syntax highlight,<br />
since inline-css works for me. If I choose ccs instead of inline-css,<br />
local html will be generated without syntax hight.</p>
<p>So the whole step is</p>
<ol>
<li>Copy CSS part of a org-mode generated html into template of blogspot<br />
(Only part 1 of CSS mentioned in  <a href="http://tkpapp.blogspot.com/2009/12/syntax-highlighting-with-org-mode.html">Tamas  K Papp&#8217;s blog</a>). The first<br />
line should be removed, since it cause some problem, especially when<br />
I use them in <a href="#wordpress.com">wordpress.com</a>, it cause <code>&lt;pre&gt;</code> part  not  <code>overflow</code><br />
(scroll bar not shown when space is not enough), i.e.</p>
<pre class="example">html { font-family: Times, serif; font-size: 12pt; }
</pre>
<p>The location<br />
is to add CSS is</p>
<pre class="example">
&lt;b:skin&gt;
  ....
 * Varaible definitions apart

  CSS you added

  original CSS setting
  ....
 &lt;/b:skin&gt;
</pre>
</li>
<li>add following line into <code>.emacs</code> file</p>
<pre class="src src-lisp">(<span style="color:#a020f0;">defun</span> <span style="color:#0000ff;">org-export-body-as-html</span> ()
(interactive)
(org-export-as-html 3 nil nil <span style="color:#bc8f8f;">"blog"</span> t))

(add-hook 'org-mode-hook
       (<span style="color:#a020f0;">lambda</span> ()
         (local-set-key (quote [?\C-c ?\C-x]) 'org-export-body-as-html)))
</pre>
</li>
<li>Use C-c C-x to generate body part of the blog</li>
<li>Use scribefire to update blog and preview the results. I feel this is<br />
more convenient than <i>webloger.el</i>. Since <i>webloger.el</i> cannot update<br />
title and set label, I have to manually change it every time if I use<br />
this. Need use new version <i>scribefire</i>, old version have bugs, when<br />
encounter `&lt;&#8217; and `&gt;&#8217; inside &lt;pre&gt; tags, it convert them into `&amp;lt&#8217;,<br />
and &#8216;&amp;gt&#8217; respectively. While &lt;pre&gt; tags may have other tags inside<br />
them, especial for color setting &lt;span&gt;.</p>
</li>
<li>If use blogspot to update blog, in <code>post option</code> part, choose <code>Use br    tags</code>. Otherwise, unwanted line breaks will be added.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vocalfolds.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vocalfolds.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=30&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/544ad02b8c4d83b732b065245e9e5646?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vocalfolds</media:title>
		</media:content>
	</item>
		<item>
		<title>Make your emacs init file know your machine</title>
		<link>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2-2/</link>
		<comments>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2-2/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 04:51:00 +0000</pubDate>
		<dc:creator>vocalfolds</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2-2/</guid>
		<description><![CDATA[My laptop screen is glossy, and so only light theme or default theme is suitable, while all other machine is okay to run great dark theme. So today I add following code into my .emacs file to do this automatically. (when (not (equal "archkicad\n" (shell-command-to-string "uname -n"))) (load-file "~/.emacs.d/color-theme-blackboard.el") (require 'color-theme) (eval-after-load "color-theme" '(progn (color-theme-initialize) [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=66&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>My laptop screen is glossy, and so only light theme or default theme is<br />
suitable, while all other machine is okay to run great dark theme. So<br />
today I add following code into my <code>.emacs</code> file to do this<br />
automatically.</p>
<pre class="src src-lisp">(<span style="color:#FBDE2D;">when</span>  (not (equal <span style="color:#61CE3C;">"archkicad\n"</span> (shell-command-to-string <span style="color:#61CE3C;">"uname -n"</span>)))
  (load-file <span style="color:#61CE3C;">"~/.emacs.d/color-theme-blackboard.el"</span>)
  (<span style="color:#FBDE2D;">require</span> '<span style="color:#D8FA3C;">color-theme</span>)
         (<span style="color:#FBDE2D;">eval-after-load</span> <span style="color:#61CE3C;">"color-theme"</span>
           '(<span style="color:#FBDE2D;">progn</span>
              (color-theme-initialize)
              (color-theme-blackboard)))
)
</pre>
<p>Here <i>archkicad</i> is the name of my laptop, which will not use any theme.</p>
<p><img src="./default32.png" alt="./default32.png" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vocalfolds.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vocalfolds.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=66&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/544ad02b8c4d83b732b065245e9e5646?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vocalfolds</media:title>
		</media:content>
	</item>
		<item>
		<title>Use your mouse to resize emacs widows</title>
		<link>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2-3/</link>
		<comments>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2-3/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 04:51:00 +0000</pubDate>
		<dc:creator>vocalfolds</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2-3/</guid>
		<description><![CDATA[It&#8217;s easy to split emacs windows with binding keys, C-x 2 and C-x 3, for horizontally and vertically, respectively. But resizing it with C-u xx C-x C-}, or C-x C-^, or C-x C-v is somewhat cumbersome. Fortunately, mouse can do this for us. Resize horizontally: move mouse cursor to those dash line in mode-line, and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=67&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s easy to split emacs windows with binding keys, <i>C-x 2</i> and <i>C-x 3</i>,<br />
for horizontally and vertically, respectively. But resizing it with <i>C-u xx C-x C-}</i>, or <i>C-x C-^</i>, or <i>C-x C-v</i> is somewhat<br />
cumbersome. Fortunately, mouse can do this for us.</p>
<ol>
<li>Resize horizontally: move mouse cursor to those dash line in<br />
mode-line, and then just drag it.</p>
</li>
<li>Resize vertically: move mouse cursor to the area just under the<br />
split line, in the mode-line. When it shows double horizontal arrow,<br />
drag it.</p>
</li>
<li>Split vertically: move to mode-line, and <i>C-mouse-midle-key</i>.</p>
</li>
<li>close window: right click mouse on the mode-line.</p>
</li>
</ol>
<p>Is it nicer? Enjoy it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vocalfolds.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vocalfolds.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=67&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vocalfolds.wordpress.com/2010/10/10/how-to-use-org-mode-to-write-blog-2-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/544ad02b8c4d83b732b065245e9e5646?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vocalfolds</media:title>
		</media:content>
	</item>
		<item>
		<title>Org-babel is great!</title>
		<link>http://vocalfolds.wordpress.com/2010/10/08/org-babel-is-great/</link>
		<comments>http://vocalfolds.wordpress.com/2010/10/08/org-babel-is-great/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 21:58:00 +0000</pubDate>
		<dc:creator>vocalfolds</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://vocalfolds.wordpress.com/2010/10/08/org-babel-is-great/</guid>
		<description><![CDATA[I just installed org-mode 7.01h and tried babel. It&#8217;s great. Now you can put different programs and their results with document together. Here are some examples. ruby require 'date' "This file was last evaluated on #{Date.today}" This file was last evaluated on 2010-10-10 octave example 1 n=[1:10]; x=2*n; ans=x 2.00000000e+00 4.00000000e+00 6.00000000e+00 8.00000000e+00 1.00000000e+01 1.20000000e+01 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=5&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I just installed org-mode 7.01h and tried babel. It&#8217;s great. Now you can<br />
put different programs and their results with document together.  Here are some examples.</p>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1">ruby </h2>
<div class="outline-text-2" id="text-1">
<pre class="src src-ruby">require <span style="color:#bc8f8f;">'date'</span>
<span style="color:#bc8f8f;">"This file was last evaluated on </span><span style="color:#b8860b;">#{Date.today}</span><span style="color:#bc8f8f;">"</span>
</pre>
<pre class="example">
This file was last evaluated on 2010-10-10
</pre>
</div>
</div>
<div id="outline-container-2" class="outline-2">
<h2 id="sec-2">octave </h2>
<div class="outline-text-2" id="text-2"></div>
<div id="outline-container-2_1" class="outline-3">
<h3 id="sec-2_1">example 1 </h3>
<div class="outline-text-3" id="text-2_1">
<pre class="src src-octave">n=[1:10];
x=2*n;
<span style="color:#b8860b;">ans</span>=x
</pre>
<pre class="example">
 2.00000000e+00 4.00000000e+00 6.00000000e+00 8.00000000e+00 1.00000000e+01 1.20000000e+01 1.40000000e+01 1.60000000e+01 1.80000000e+01 2.00000000e+01
</pre>
</div>
</div>
<div id="outline-container-2_2" class="outline-3">
<h3 id="sec-2_2">example 2 </h3>
<div class="outline-text-3" id="text-2_2">
<pre class="src src-octave">A=[1 2];
B=[2 3]';
C=A*B;
<span style="color:#b8860b;">ans</span>=C
</pre>
<pre class="example">
 8.00000000e+00
</pre>
<p>p</p>
<pre class="example">
 8.00000000e+00
</pre>
</div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vocalfolds.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vocalfolds.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vocalfolds.wordpress.com&#038;blog=16527152&#038;post=5&#038;subd=vocalfolds&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vocalfolds.wordpress.com/2010/10/08/org-babel-is-great/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/544ad02b8c4d83b732b065245e9e5646?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vocalfolds</media:title>
		</media:content>
	</item>
	</channel>
</rss>