<?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>Vantage Point of Queens &#187; emacs</title>
	<atom:link href="http://blog.nydd.org/topic/tech/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nydd.org</link>
	<description>Art, Hack and Rock'n Roll</description>
	<lastBuildDate>Wed, 16 Jun 2010 13:59:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Emacs Again (9): some tips and not to be purist.</title>
		<link>http://blog.nydd.org/2009/10/emacs-again-9-some-tips-and-not-to-be-purist/</link>
		<comments>http://blog.nydd.org/2009/10/emacs-again-9-some-tips-and-not-to-be-purist/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 03:26:56 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=296</guid>
		<description><![CDATA[				I got some reactions about Emacs via Twitter/Facebook.
				
				Gary B at work told me about this command.
				
(global-set-key "\C-x\C-m" 'execute-extended-command)

				It sets up another key stroke (C-x C-m) for &#8220;execute-extended-command&#8220;, which you can do with M-x as default.  I was also originally thinking that &#8220;execute-extended-command&#8221; is such a frequent command and why Emacs doesn&#8217;t assign with Control [...]]]></description>
			<content:encoded><![CDATA[				<p>I got some reactions <a href="http://blog.nydd.org/2009/10/10/emacs-again-8-recent-commands/">about Emacs</a> via Twitter/Facebook.</p>
				<hr />
				<p><a href="http://www.facebook.com/that.gary">Gary B</a> at work told me about this command.</p>
				<pre class="prettyprint"><code>
(global-set-key "\C-x\C-m" 'execute-extended-command)
</code></pre>
				<p>It sets up another key stroke (<code>C-x C-m</code>) for &#8220;<code>execute-extended-command</code>&#8220;, which you can do with <code>M-x</code> as default.  I was also originally thinking that &#8220;<code>execute-extended-command</code>&#8221; is such a frequent command and why Emacs doesn&#8217;t assign with Control key instead of Meta.  As Gary told me &#8220;it&#8217;ll grow on you.&#8221;  For me personally at this moment, I have no problems with doing <code>M-x</code>, but we&#8217;ll see.  At least now I know how to do it. <img src='http://blog.nydd.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
				<hr />
				<p><a href="http://twitter.com/swh">Steph</a> told me 3 things at one message.</p>
				<pre class="prettyprint"><code>M-x occur</code></pre>
<p>is absolute useful.  My initial reaction was, &#8220;Hmm, it looks similar to tag jump?&#8221;  But I was wrong.  Because it takes regex, it can do a lot more flexible, and more over it&#8217;s on the fly.  Neat!</p>
<pre class="prettyprint"><code>M-x align-regexp</code></pre>
				<p>I haven&#8217;t used it yet but looks nice.  And I found this page: <a href=" http://www.emacswiki.org/emacs/AlignCommands">Emacs wiki &#8212; Align commands</a> comes with tons of other useful tricks for aligning.</p>
				<pre class="prettyprint"><code>Also % for finding the matching brace.</code></pre>
<p>I found <code>M-C-f</code> (forward) and <code>M-C-b</code> (backward) in order to do that.  How do I do with % sign?</p>
<hr />
<p>Before I used Emacs on my dev box only very once in a while and I couldn&#8217;t like for various reasons.  One of the biggest glitch was, lots of my config wasn&#8217;t simply working.  So, I setup .emacs.el and .emacs.d on my linux dev box today.  It was not still working, then I realize &#8220;Hmm, maybe I can update Emacs.&#8221;  Gentoo default was 21.  22 was installed, but not defaultly used.  And latest is 23.  Why not?  Boon, here you go.  Emacs 23 works perfectly fine now.</p>
<p>As I explained before (<a href="http://blog.nydd.org/2009/03/02/emacs-again-1-config/">Emacs Again (1): config</a>), I setup all Emacs related config files on Dropbox.  I know you can setup Dropbox on Linux but since all dev at work can log into my dev box, I don&#8217;t wanna do that.  So what I did was setup rsync script on both my work mac and my linux box.</p>
<pre class="prettyprint"><code>
#!/bin/sh                                                                                

rsync --progress -a --rsh='ssh -p22' $HOME/Dropbox/Config/emacs/ takashi@my.devbox.local:emacs/ --exclude 'auto-save-list' --exclude '.DS_Store' --exclude 'tramp'
</code></pre>
				<p>then I run this command everyday.  Yay.</p>
				<hr />
				<p>One last thing is about permission issue.  I believe I talked about this with <a href="http://readystate4.com/">Mauvis</a> before (and I don&#8217;t remember what he does, sorry!).</p>
				<p>If you start to use Emacs, then you wanna do every text editing in Emacs.  But what if you wanna edit something that requires root permission.  You can do <code>sudo emacs /something/important</code>  Yeah, you can do it but&#8230; It&#8217;s not efficient at all.</p>
				<p>One other way I found was using <a href="http://www.emacswiki.org/emacs/TrampMode">tramp</a>.  But I don&#8217;t like the idea because it implicitly requires that you can login as root via ssh on your localhost.  I think it&#8217;s definitely a nice hack but I don&#8217;t like the solution.  And I talked to Gary about it, and he said &#8220;<strong>then I use vi.</strong>&#8221;  <em>Touché</em>, Gary.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/10/emacs-again-9-some-tips-and-not-to-be-purist/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Emacs Again (8): Recent Commands</title>
		<link>http://blog.nydd.org/2009/10/emacs-again-8-recent-commands/</link>
		<comments>http://blog.nydd.org/2009/10/emacs-again-8-recent-commands/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 00:12:20 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=293</guid>
		<description><![CDATA[				I know some of them appeared before, but I re-find them again and again.  That&#8217;s how you learn it, right?
				
				
				
				Key Stroke
				Command Name
				Action
				
				
				
				
				M-;
				comment-dwim
				comment or uncomment the selected region
				
				
				M-g g
				goto-line
				Interestingly M-g g and  M-g M-g are the same goto-line.  Very self explainatory.
				
				
				C-M-\
				indent-region
				self explainatory. Without argument, Emacs will automatically find suitable indent. If you do [...]]]></description>
			<content:encoded><![CDATA[				<p>I know some of them appeared before, but I re-find them again and again.  That&#8217;s how you learn it, right?</p>
				<table>
				<thead>
				<tr>
				<th><code>Key Stroke</code></th>
				<th><code>Command Name</code></th>
				<th>Action</th>
				</tr>
				</thead>
				<tbody>
				<tr>
				<td><code>M-;</code></td>
				<td><code>comment-dwim</code></td>
				<td>comment or uncomment the selected region</td>
				</tr>
				<tr>
				<td><code>M-g g</code></td>
				<td><code>goto-line</code></td>
				<td>Interestingly <code>M-g g</code> and  <code>M-g M-g</code> are the same goto-line.  Very self explainatory.</td>
				</tr>
				<tr>
				<td><code>C-M-\</code></td>
				<td><code>indent-region</code></td>
				<td>self explainatory. Without argument, Emacs will automatically find suitable indent. If you do throw argument like <code>C-u 10 C-M-\</code> then it adds 10 spaces (or tab. depends on your mode) in the beginning of the selected region.</td>
				</tr>
				<tr>
				<td><code>C-j</code></td>
				<td><code>eval-print-last-sexp</code></td>
				<td>You can only do this in &#8220;Lisp-Interaction&#8221; mode? Evaluate expression on.  You can use it as temporary command.  As usual, it display the last return value.</td>
				</tr>
				<tr>
				<td><code>C-x 3</code></td>
				<td><code>split-window-horizontally</code></td>
				<td>Split current window into two windows side by side.  Vertical split is <code>C-x 2</code>.  If you want to get windows back into 1 window do <code>C-x 0</code> or <code>C-x 1</code>.  <code>1</code> brings you to absolutely 1 window and 0 make split windows back to 1 (it makes difference when you have multiple sprits).  If you want to switch between windows, do <code>C-x o</code>.</td>
				</tr>
				<tr>
				<td><code>C-_</code></td>
				<td><code>undo</code></td>
				<td>Undo and redo, smartly executed.  It says _(underscore) but you basically can do as -(minus sign).  Maybe because I use US-ASCII layouted keyboard.  Those two characters are assigned on the same key, so I don&#8217;t have to hold Shift key in order to type _(underscore).</td>
				</tr>
				<tr>
				<td><code>C-g C-_</code></td>
				<td><code>cancel undo</code></td>
				<td>Explicitly you can redo by doing this.</td>
				</tr>
				</tbody>
				</table>
				<h4>Change Split Ratio</h4>
				<p>So I was wondering if I can change the window split ratio, when I do C-x 2 or C-x 3.  I asked it on IRC, and somebody immediately answer me.  It&#8217;s simple, as Emacs way.  You pass the argument.</p>
				<pre><code>
C-u 20 C-x 3
</code></pre>
				<p>So this will make left side 20 cursor width and split window vertically.</p>
				<h4>Community channel</h4>
				<p>Related to the preceding section, you can ask question on IRC.  And also there is a twitter account <a href="http://twitter.com/learnemacs">@learnemacs</a>, and he (or she) can answer your question if you tweet something.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/10/emacs-again-8-recent-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>090823: learn</title>
		<link>http://blog.nydd.org/2009/08/090823-learn/</link>
		<comments>http://blog.nydd.org/2009/08/090823-learn/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 03:39:16 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[japanese]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=266</guid>
		<description><![CDATA[				diretory の比較 on Unix
				Wordpress をアップデート。いつも忘れてしまう diretory の比較。普段は Changes.app などという Mac OS X の GUI アプリを使ってしまって、いっこうに覚えなかった…
				How To Compare Directories in Unix
				$ diff --recursive --brief /tmp/dir1 /tmp/dir2
Files /tmp/dir1/dir11/file12 and /tmp/dir2/dir11/file12 differ
Files /tmp/dir1/file1 and /tmp/dir2/file1 differ
Only in /tmp/dir1: file2
Only in /tmp/dir2: file3
				これを応用すると、例えば dir1 にだけ存在するファイルは
				$ diff --recursive --brief /tmp/dir1 /tmp/dir2 &#124; grep '^Only \/tmp\/dir1'
とすればよいですね。
emacs で major mode を変える
例えば .html [...]]]></description>
			<content:encoded><![CDATA[				<h4>diretory の比較 on Unix</h4>
				<p>Wordpress をアップデート。いつも忘れてしまう diretory の比較。普段は <a href="http://connectedflow.com/changes/">Changes.app</a> などという Mac OS X の GUI アプリを使ってしまって、いっこうに覚えなかった…</p>
				<p><a href="http://www.unixtutorial.org/2008/06/how-to-compare-directories-in-unix/">How To Compare Directories in Unix</a></p>
				<pre><code class="prettyprint">$ diff --recursive --brief /tmp/dir1 /tmp/dir2
Files /tmp/dir1/dir11/file12 and /tmp/dir2/dir11/file12 differ
Files /tmp/dir1/file1 and /tmp/dir2/file1 differ
Only in /tmp/dir1: file2
Only in /tmp/dir2: file3</code></pre>
				<p>これを応用すると、例えば dir1 にだけ存在するファイルは</p>
				<pre><code class="prettyprint">$ diff --recursive --brief /tmp/dir1 /tmp/dir2 | grep '^Only \/tmp\/dir1'</code></pre>
<p>とすればよいですね。</p>
<h4>emacs で major mode を変える</h4>
<p>例えば .html なファイルを emacs で開くとほぼおそらく HTML mode で開かれると思います。でも実は内部の JavaScript を編集したいし、js2-mode (JavaScript-IDE) で編集したい。凄い基本ですがしばらく emacs を触ってないで忘れてしまっていました。</p>
<pre><code class="prettyprint">M-x js2-mode</code></pre>
				<p>でした。</p>
				<hr />
				<p>またこれから emacs 勉強記録をつけていきたいと思います。今日はどうやってコピーするのか忘れてましたが (M-w Copy / C-w Cut / C-y Paste) それさえわかれば、それなりに使えrて結構びっくりした。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/08/090823-learn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs Again (7): Using Emacs&#8230;</title>
		<link>http://blog.nydd.org/2009/04/emacs-again-7-using-emacs/</link>
		<comments>http://blog.nydd.org/2009/04/emacs-again-7-using-emacs/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 06:05:51 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=206</guid>
		<description><![CDATA[				Now I really started to use Emacs as a daily life.  Well, I only use it at home at this point, but I actually am getting used to it slowly but surely.  Here&#8217;s the list of commands I most frequently use.  By using search and tag jump, Emacs makes me so happy. [...]]]></description>
			<content:encoded><![CDATA[				<p>Now I really started to use Emacs as a daily life.  Well, I only use it at home at this point, but I actually am getting used to it slowly but surely.  Here&#8217;s the list of commands I most frequently use.  By using search and tag jump, Emacs makes me so happy.  The code completion runs a bit weird right now.  I will try to figure out and will share with you.</p>
				<table>
				<thead>
				<tr>
				<th><code>Key Stroke</code></th>
				<th><code>Command Name</code></th>
				<th>Action</th>
				</tr>
				</thead>
				<tbody>
				<tr>
				<td><code>C-s</code></td>
				<td><code>isearch-forward</code></td>
				<td>Do incremental Search forward.  After typing some, it gets modal.  You should see <code>C-h k RET C-s</code> to what you can do.</td>
				</tr>
				<tr>
				<td><code>C-r</code></td>
				<td><code>isearch-backward</code></td>
				<td>Do incremental search backward.</td>
				</tr>
				<tr>
				<td><code>M-g g</code></td>
				<td><code>goto-line</code></td>
				<td>Go to line.</td>
				</tr>
				<tr>
				<td><code>C-x k</code></td>
				<td><code>kill-buffer</code></td>
				<td>It&#8217;s equivalent to &#8220;close&#8221; of usual editors.</td>
				</tr>
				<tr>
				<td><code>M-.</code></td>
				<td><code>find-tag</code></td>
				<td>Find tag (in current tags table) whose name contains TAGNAME.</td>
				</tr>
				<tr>
				<td><code>&nbsp;</code></td>
				<td><code>tags-apropos</code></td>
				<td>Display list of all tags in tags table REGEXP matches.</td>
				</tr>
				<tr>
				<td><code>C-x o</code></td>
				<td><code>other-window</code></td>
				<td>Select next window on the frame</td>
				</tr>
				<tr>
				<td><code>C-x b</code></td>
				<td><code>switch-to-buffer</code></td>
				<td>Select buffer BUFFER in the current window</td>
				</tr>
				<tr>
				<td><code>C-x C-b</code></td>
				<td><code>list-buffers</code></td>
				<td>Display a list of names of existing buffers.
				</td>
				</tr>
				</tbody>
				</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/04/emacs-again-7-using-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs Again (6): Learning GNU Emacs Chap 2</title>
		<link>http://blog.nydd.org/2009/04/emacs-again-6-learning-gnu-emacs-chap-2/</link>
		<comments>http://blog.nydd.org/2009/04/emacs-again-6-learning-gnu-emacs-chap-2/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 03:48:20 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=192</guid>
		<description><![CDATA[				Here&#8217;s a list of commands I learned from Learning GNU Emacs, Third Edition Chapter 2.
				Chpater 2 &#8212; Editing
				
				
				
				Key Stroke
				Command Name
				Action
				
				
				
				
				C-x
				Control-X-prefix
				Try C-h v and type ctl-x-map
				
				
				M-x
				execute-extended-command
				Run a function by name. Try C-h f for each specific function name and what it does.
				
				
				C-f
				forward-char
				Move point one character right
				
				
				C-b
				backward-char
				Move point one characer left
				
				
				C-p
				previous-line
				Move point vertically up
				
				
				C-n
				next-line
				Move point vertically down
				
				
				M-f
				forward-word
				Move [...]]]></description>
			<content:encoded><![CDATA[				<p>Here&#8217;s a list of commands I learned from <a href="http://www.amazon.com/gp/product/0596006489?ie=UTF8&#038;tag=teey-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596006489">Learning GNU Emacs, Third Edition</a> Chapter 2.</p>
				<h4>Chpater 2 &mdash; Editing</h4>
				<table>
				<thead>
				<tr>
				<th><code>Key Stroke</code></th>
				<th><code>Command Name</code></th>
				<th>Action</th>
				</tr>
				</thead>
				<tbody>
				<tr>
				<td><code>C-x</code></td>
				<td><code>Control-X-prefix</code></td>
				<td>Try <code>C-h v</code> and type <code>ctl-x-map</code></td>
				</tr>
				<tr>
				<td><code>M-x</code></td>
				<td><code>execute-extended-command</code></td>
				<td>Run a function by name. Try <code>C-h f</code> for each specific function name and what it does.</td>
				</tr>
				<tr>
				<td><code>C-f</code></td>
				<td><code>forward-char</code></td>
				<td>Move point one character right</td>
				</tr>
				<tr>
				<td><code>C-b</code></td>
				<td><code>backward-char</code></td>
				<td>Move point one characer left</td>
				</tr>
				<tr>
				<td><code>C-p</code></td>
				<td><code>previous-line</code></td>
				<td>Move point vertically up</td>
				</tr>
				<tr>
				<td><code>C-n</code></td>
				<td><code>next-line</code></td>
				<td>Move point vertically down</td>
				</tr>
				<tr>
				<td><code>M-f</code></td>
				<td><code>forward-word</code></td>
				<td>Move point forward by a word</td>
				</tr>
				<tr>
				<td><code>M-b</code></td>
				<td><code>backward-word</code></td>
				<td>Move point backward by a word</td>
				</tr>
				<tr>
				<td><code>C-a</code></td>
				<td><code>move-beginning-of-line</code></td>
				<td>Move point to beginning of current line as displayed</td>
				</tr>
				<tr>
				<td><code>C-e</code></td>
				<td><code>move-end-of-line</code></td>
				<td>Move point to end of current line as displayed</td>
				</tr>
				<tr>
				<td><code>M-a</code></td>
				<td><code>backward-sentence</code></td>
				<td>Move point backward to start of sentence</td>
				</tr>
				<tr>
				<td><code>M-e</code></td>
				<td><code>forward-sentence</code></td>
				<td>Move point forward to next <code>&quot;sentence-end&quot;</code>. (The variable <code>&quot;sentence-end&quot;</code> is a regular expression)</td>
				</tr>
				<tr>
				<td><code>M-}</code></td>
				<td><code>forward-paragraph</code></td>
				<td>Move point forward to end of paragraph</td>
				</tr>
				<tr>
				<td><code>M-{</code></td>
				<td><code>backward-paragraph</code></td>
				<td>Move point backward to start of paragraph</td>
				</tr>
				<tr>
				<td><code>C-x ]</code></td>
				<td><code>forward-page</code></td>
				<td>Move pointforward to page boundary</td>
				</tr>
				<tr>
				<td><code>C-x [</code></td>
				<td><code>backward-page</code></td>
				<td>Move point backward to page boundary</td>
				</tr>
				<tr>
				<td><code>C-q</code></td>
				<td><code>quoted-insert</code></td>
				<td>Read next input character and insert it. This is useful for inserting control characters. For example, if you want to insert <code>\?</code>, you'll type <code>C-q DEL</code></td>
				</tr>
				<tr>
				<td><code>C-v</code></td>
				<td><code>scroll-up</code></td>
				<td>Scroll text of current window upward</td>
				</tr>
				<tr>
				<td><code>M-v</code></td>
				<td><code>scroll-down</code></td>
				<td>Scroll text of current window down</td>
				</tr>
				<tr>
				<td><code>M-&gt;</code></td>
				<td><code>end-of-buffer</code></td>
				<td>Move point to the end of the buffer; leave mark at previous position.</td>
				</tr>
				<tr>
				<td><code>M-&lt;</code></td>
				<td><code>beginning-of-buffer</code></td>
				<td>Move point to the beginning of the buffer; leave mark at previous position.</td>
				</tr>
				<tr>
				<td><code>M-g M-g</code></td>
				<td><code>goto-line</code></td>
				<td>Goto line ARG, counting from line 1 at beginning of buffer.</td>
				</tr>
				<tr>
				<td><code>&nbsp;</code></td>
				<td><code>goto-char</code></td>
				<td>Set point to POSITION, a number or marker.</td>
				</tr>
				<tr>
				<td><code>M-(number)</code></td>
				<td><code>digit-argument</code></td>
				<td>Repeat following command (number) times. For example: <code>M-3 C-f</code> will move point 3 characters forward.</td>
				</tr>
				<tr>
				<td><code>C-u</code></td>
				<td><code>universal-argument</code></td>
				<td>Begin a numeric argument for the following command. For example: <code>C-u 9 C-q DEL</code> will insert nine <code>\?</code> at point,<code> C-u 3 C-f</code> will move point 3 chars forward.</td>
				</tr>
				<tr>
				<td><code>C-l</code></td>
				<td><code>recenter</code></td>
				<td>Center point in window and redisplay frame.</td>
				</tr>
				<tr>
				<td><code>C-d</code></td>
				<td><code>delete-char</code></td>
				<td>Delete the following character. Defaultly assigned on delete button</td>
				</tr>
				<tr>
				<td><code>M-d</code></td>
				<td><code>kill-word</code></td>
				<td>Kill characters forward until encountering the end of a word.</td>
				</tr>
				<tr>
				<td><code>M-DEL</code></td>
				<td><code>backward-kill-word</code></td>
				<td>Kill characters backward until encountering the beginning of a word</td>
				</tr>
				<tr>
				<td><code>C-k</code></td>
				<td><code>kill-line</code></td>
				<td>Kill the rest of the current line; if no nonblanks there, kill thru newline.</td>
				</tr>
				<tr>
				<td><code>C-y</code></td>
				<td><code>yank</code></td>
				<td>Reinsert (&quot;paste&quot;) the last stretch of killed text.</td>
				</tr>
				<tr>
				<td><code>C-SPC or C-@</code></td>
				<td><code>set-mark-command</code></td>
				<td>Set the mark where point is, or jump to the mark.</td>
				</tr>
				<tr>
				<td><code>C-x C-x</code></td>
				<td><code>exchange-point-and-mark</code></td>
				<td>Put the mark where point is now, and point where the mark is now</td>
				</tr>
				<tr>
				<td><code>M-h</code></td>
				<td><code>mark-paragraph</code></td>
				<td>Put point at beginning of this paragraph, mark at end</td>
				</tr>
				<tr>
				<td><code>C-x h</code></td>
				<td><code>mark-whole-buffer</code></td>
				<td>Put point at beginning and mark at end of buffer</td>
				</tr>
				<tr>
				<td><code>C-x C-p</code></td>
				<td><code>mark-page</code></td>
				<td>Put mark at end of page, point at beginning</td>
				</tr>
				<tr>
				<td><code>M-y</code></td>
				<td><code>yank-pop</code></td>
				<td>After <code>C-y</code>, Rotate Kill Ring. Let's say, you have <code>['latest', '2nd', '3rd']</code> as Kill Ring. When you do <code>C-y</code>, Emacs inserts <em>latest</em> at point. Then <code>M-y</code> will change <em>latest</em> to <em>2nd</em>, and type <code>M-y</code> again, <em>2nd</em> will be <em>3rd</em>. <code>M-y</code> again, <em>3rd</em> will be back to <em>latest</em>.</td>
				</tr>
				<tr>
				<td><code>C-t</code></td>
				<td><code> transpose-chars</code></td>
				<td>Interchange characters around point, moving forward one character</td>
				</tr>
				<tr>
				<td><code>M-t</code></td>
				<td><code>transpose-words</code></td>
				<td>Interchange words around point, leaving point at end of them</td>
				</tr>
				<tr>
				<td><code>C-x C-t</code></td>
				<td><code>transpose-lines</code></td>
				<td>Exchange current line and previous line, leaving point after both</td>
				</tr>
				<tr>
				<td><code>C-g</code></td>
				<td><code>keyboard-quit</code></td>
				<td>Signal a quit condition.</td>
				</tr>
				<tr>
				<td><code>C-x u</code></td>
				<td><code>advertised-undo</code></td>
				<td>Undo some previous changes</td>
				</tr>
				</tbody>
				</table>
				<h4>Notes</h4>
				<p>Like other editors in Mac/Windows or even in vi&#8230; You know, when you start to select characters, background and foreground colors are inverted.  In order to visualize where you are selecting (in Emacs way, it should say&#8230; make a region by using set-mark command), you have to add the following line in your .emacs.el.  I just wonder why this is not default configuration&#8230; Anyway.</p>
				<pre class="prettyprint">
(setq-default transient-mark-mode t)
</pre>
				<p>I&#8217;ve started my unix career with vi, like 1997?  Even the first information technology class in my college taught me to use emacs, I liked vi better because, in that class, I think we have around 100 ~ 200 students one class, and all of them were connecting to &#8220;Clay Super Computer&#8221; with a few giga-bytes of memory space&#8230;  It was just insane, to use a &#8220;memory sucker Emacs&#8221; with that terminal.</p>
				<p>So, I still, when I did something wrong on editor, I type ESC! ESC! ESC!.. but instead, I should start to do C-g! C-g! C-g!!</p>
				<p>Clipboard-Pasetboard interoperability/synchronization doesn&#8217;t work in my environment, Mac OS X 10.5 with Terminal Emacs 22.1.</p>
				<p>Changing capital, Overwrite and Customization doesn&#8217;t seem to be important to me so I skipped it for now.</p>
				<p><iframe src="http://rcm.amazon.com/e/cm?t=teey-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0596006489&#038;md=10FE9736YVPPT7A0FBG2&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px; float:left; margin-right: 5px;" scrolling="no"  frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/04/emacs-again-6-learning-gnu-emacs-chap-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs Again (5): Showing line number</title>
		<link>http://blog.nydd.org/2009/03/emacs-again-5-showing-line-number/</link>
		<comments>http://blog.nydd.org/2009/03/emacs-again-5-showing-line-number/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 01:47:42 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=187</guid>
		<description><![CDATA[				I found a nice elisp to show line number.
				wb-line-number
				As you see on screenshot, it shows line number on left side of the emacs window.  As usual .el files, download it into your elisp directory, and add some lines in your emacs.el file.  I usually like to wrap line by window size.  And [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.flickr.com/photos/beatak/3403373746/" title="wb-line-number by beatak, on Flickr" style="display:block; float:left; padding: 0 10px 10px 0;"><img src="http://farm4.static.flickr.com/3543/3403373746_84f0c1f353_m.jpg" width="223" height="240" alt="wb-line-number" /></a>I found a nice elisp to show line number.</p>
				<p><a href="http://homepage1.nifty.com/blankspace/emacs/elisp.html">wb-line-number</a></p>
				<p>As you see on screenshot, it shows line number on left side of the emacs window.  As usual .el files, download it into your elisp directory, and add some lines in your emacs.el file.  I usually like to wrap line by window size.  And here&#8217;s what I did on .el file.<br style="clear:both;" /></p>
				<pre class="prettyprint">(require 'wb-line-number)
(setq truncate-partial-width-windows nil)  ; wrap line by window size
(wb-line-number-toggle)</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/03/emacs-again-5-showing-line-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs Again (4): Learning GNU Emacs Chap 1</title>
		<link>http://blog.nydd.org/2009/03/emacs-again-4-learning-gnu-emacs-chap-1/</link>
		<comments>http://blog.nydd.org/2009/03/emacs-again-4-learning-gnu-emacs-chap-1/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 17:26:54 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[emacs]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=158</guid>
		<description><![CDATA[				
				I got Learning GNU Emacs, Third Edition.  And here&#8217;s the summary I learned from Chapter 1.
				
				
				
				Key Stroke
				Command Name
				Action
				
				
				
				
				C-x C-f
				find-file
				Find file and read it into a new buffer.
				
				
				C-x C-v
				find-alternate-file
				Read an alternate file, replacing the one you&#8217;ve done with C-x C-f
				
				
				C-x i
				insert-file
				Insert file at point position.
				
				
				M-&#62;
				end-of-buffer
				Move point to the end of the buffer; leave mark at [...]]]></description>
			<content:encoded><![CDATA[				<p><iframe src="http://rcm.amazon.com/e/cm?t=teey-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0596006489&#038;md=10FE9736YVPPT7A0FBG2&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px; float:left; margin-right: 5px;" scrolling="no"  frameborder="0"></iframe></p>
				<p>I got <a href="http://www.amazon.com/gp/product/0596006489?ie=UTF8&#038;tag=teey-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596006489">Learning GNU Emacs, Third Edition</a>.  And here&#8217;s the summary I learned from Chapter 1.<br style="clear:both;" /></p>
				<table>
				<thead>
				<tr>
				<th>Key Stroke</th>
				<th>Command Name</th>
				<th>Action</th>
				</tr>
				</thead>
				<tbody>
				<tr>
				<td><code>C-x C-f</code></td>
				<td><code>find-file</code></td>
				<td>Find file and read it into a new buffer.</td>
				</tr>
				<tr>
				<td><code>C-x C-v</code></td>
				<td><code>find-alternate-file</code></td>
				<td>Read an alternate file, replacing the one you&#8217;ve done with <code>C-x C-f</code></td>
				</tr>
				<tr>
				<td><code>C-x i</code></td>
				<td><code>insert-file</code></td>
				<td>Insert file at <em>point </em>position.</td>
				</tr>
				<tr>
				<td><code>M-&gt;</code></td>
				<td><code>end-of-buffer</code></td>
				<td>Move point to the end of the buffer; leave mark at previous position. By being followed by <code>C-x i</code> you can append file.</td>
				</tr>
				<tr>
				<td><code>C-x C-s</code></td>
				<td><code>save-buffer</code></td>
				<td>Save buffer with the current buffer name.</td>
				</tr>
				<tr>
				<td><code>C-x C-w</code></td>
				<td><code>write-buffer</code></td>
				<td>Emacs prompts you to set a new file name, and save it.</td>
				</tr>
				<tr>
				<td><code>C-x C-c</code></td>
				<td><code>save-buffers-kill-emacs</code></td>
				<td>Exit Emacs with asking you if there are any un-saved buffer. But <code>*scratch*</code> is different. Even you&#8217;ve editted <code>*scratch*</code>, Emacs discard it silently.</td>
				</tr>
				<tr>
				<td><code>C-h</code></td>
				<td><code>help-command</code></td>
				<td>Enter the online help.</td>
				</tr>
				<tr>
				<td><code>C-h ?</code></td>
				<td><code>help-for-help (or help-for-help-internal)</code></td>
				<td>Display a list of available help command?</td>
				</tr>
				<tr>
				<td><code>C-h f</code></td>
				<td><code>describe-function</code></td>
				<td>Display help for a given command.</td>
				</tr>
				<tr>
				<td><code>C-h k</code></td>
				<td><code>describe-key</code></td>
				<td>Display help for a given key stroke.</td>
				</tr>
				<tr>
				<td><code>C-h v</code></td>
				<td><code>describe-variable</code></td>
				<td>Display help for a given variable (a symbol).</td>
				</tr>
				<tr>
				<td><code>C-h t</code></td>
				<td><code>help-with-tutorial</code></td>
				<td>Start Emacs tutorial.</td>
				</tr>
				</tbody>
				</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/03/emacs-again-4-learning-gnu-emacs-chap-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs Again (3): dired, js2-mode and ctags</title>
		<link>http://blog.nydd.org/2009/03/emacs-again-3-dired-js2-mode-and-ctags/</link>
		<comments>http://blog.nydd.org/2009/03/emacs-again-3-dired-js2-mode-and-ctags/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 06:39:29 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[emacs]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=154</guid>
		<description><![CDATA[				dired
				dired stands for DIRectory EDit. (Not sure how it&#8217;s pronounced.) It is very useful bundled application.  When you do C-x C-f then just hit enter.  You&#8217;ll see something like ls but with cursor on it.  You can do a lot of stuff by this, but mainly, you&#8217;ll do open files, just choosing [...]]]></description>
			<content:encoded><![CDATA[				<h4>dired</h4>
				<p>dired stands for <a href="http://en.wikipedia.org/wiki/Dired">DIRectory EDit</a>. (Not sure how it&#8217;s pronounced.) It is very useful bundled application.  When you do <code class="prettyprint">C-x C-f</code> then just hit enter.  You&#8217;ll see something like <code>ls</code> but with cursor on it.  You can do a lot of stuff by this, but mainly, you&#8217;ll do open files, just choosing file with cursor, and hit enter.  You can also delete by press d for marking.  And then press x to execute it.  I&#8217;m sure there&#8217;s a lot more to do, but that&#8217;s what I do so far.</p>
				<p><a href="http://www.flickr.com/photos/beatak/3329489877/" title="color by beatak, on Flickr"><img src="http://farm4.static.flickr.com/3300/3329489877_6606624349_m.jpg" width="229" height="240" alt="color" align="left" style="margin: 0 5px 5px 0;" /></a>If you&#8217;re a Mac person, and If you using Display ANSI colors on Terminal.app, and if you use black background theme, such as Pro, you hardly see color of Blue.  You can try <a href="http://niw.at/articles/2007/11/02/TerminalColoreopard/en">TerminalColoreopard</a>.  Yoshimasa Niwa made a <a href="http://www.culater.net/software/SIMBL/SIMBL.php">SIBML</a> extension for choosing ANSI color.  This ANSI color setting can be only for for one user.  Cannot be like theming, but I don&#8217;t change theme everyday, so that works fine for me. <br class="clear:both; " /></p>
				<h4>js2-mode</h4>
				<p>In emacs, there are Major mode and Minor mode.  Major mode work like a Perspective in Eclipse IDE.  It gives certain kind of framework to work on a given issue.  There are <code class="prettyprint">ecmascript-mode.el</code>, <code class="prettyprint">javascript.el</code> and <code class="prettyprint">js2.el</code>.  I use <code class="prettyprint">js2.el</code> for now.</p>
				<p>In order to make <code class="prettyprint">js2.el</code> work, emacs needs to know which directory autoload search for.  It&#8217;s like a path setting in your shell.  How do you know which directories your emacs search for?  Type <code class="prettyprint">C-h v load-path</code>.  It will return your emacs&#8217; search path.  I found <a href="http://www.emacswiki.org/emacs/LoadPath">a nice article about load-path on emacs wiki</a>.  I wanna load everything in <code class="prettyprint">~/.emacs.d</code> is represented as follows.</p>
				<pre class="prettyprint">(progn (cd "~") (normal-top-level-add-to-load-path '(".emacs.d")))</pre>
<p>And download <code class="prettyprint">js2.el</code>, put it into my <code class="prettyprint">~/.emacs.d/</code>. Open <code class="prettyprint">js2.el</code>, then do <code>M-x byte-compile-file</code>.  You&#8217;ll get <code class="prettyprint">js2.elc</code>, which is pre-compiled version.  Then add following lines in .emacs.el</p>
<pre class="prettyprint">;; js2-mode
(autoload 'js2-mode "js2" nil t)
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))</pre>
				<p>now whenever you open *.js, you&#8217;ll use Js2 Major mode.</p>
				<h4>ctags</h4>
				<p>Tag is not like delicious tag.  It&#8217;s more like search index.</p>
				<p><a href="http://www.emacswiki.org/emacs/EmacsTags">EmacsTags</a></p>
				<p>I use <a href="http://ctags.sourceforge.net/">exuberant ctags</a>.  Just compile and install (<code class="prettyprint">./configure ;; make;; sudo make install</code>). And disable original ctags (<code class="prettyprint">sudo chmod a-x /usr/bin/ctags</code>).</p>
				<p>Outside of emacs, go to top directory of your source file.  Try <code class="prettyprint">ctags -e --recurse --languages=javascript</code>.  Then you&#8217;ll get TAGS file in the same directory.</p>
				<p>You can do<br />
				<code class="prettyprint">M-x visit-tags-table</code> and choose TAGS file first.  But if you don&#8217;t choose TAGS file and try to do tag jump by <code class="prettyprint">M-.</code>, you&#8217;ll be asked which file emacs should read anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/03/emacs-again-3-dired-js2-mode-and-ctags/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Emacs Again (2): auto-save and font</title>
		<link>http://blog.nydd.org/2009/03/emacs-again-2-auto-save-and-font/</link>
		<comments>http://blog.nydd.org/2009/03/emacs-again-2-auto-save-and-font/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 03:13:07 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[emacs]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=139</guid>
		<description><![CDATA[				Auto save revisited
				So I joined irc.freenode.net#emacs, and asked how to configure auto-save.  Several nice people helped me out.  Here&#8217;s my .emacs.el for backup and auto-save.
				
(setq make-backup-files t)       ; enable backup file
;;; locate where you backup files
(setq backup-directory-alist
      (cons (cons "\\.*$" (expand-file-name "~/.backup"))
 [...]]]></description>
			<content:encoded><![CDATA[				<h4>Auto save revisited</h4>
				<p>So I joined irc.freenode.net#emacs, and asked how to configure auto-save.  Several nice people helped me out.  Here&#8217;s my .emacs.el for backup and auto-save.</p>
				<pre class="prettyprint">
(setq make-backup-files t)       ; enable backup file
;;; locate where you backup files
(setq backup-directory-alist
      (cons (cons "\\.*$" (expand-file-name "~/.backup"))
            backup-directory-alist))

(setq version-control t)     ; enable versions of backup
(setq kept-new-versions 5)   ; how many keep new verisons
(setq kept-old-versions 5)   ; how many keep old versions
(setq delete-old-versions t) ; delete old version without asking
(setq vc-make-backup-files t) ; still make a backup for version-controled files                

;;; Autosave in .backup dir
(setq auto-save-file-name-transforms
  '(("\\([^/]*/\\)*\\([^/]*\\)\\'" "~/.backup/\\2" t)))
</pre>
				<p>Originally, I was very confused by auto-save and backup.  FIles of backup are named usually like <code class="prettyprint">FILE_NAME~</code> and autosave are like <code class="prettyprint">#FILE_NAME#</code>.  At this point, I&#8217;m not quite sure that auto-save-file-name-transforms will take, but that&#8217;s alright.  What I wanted to d</p>
				<h4>Japanese (or other multibyte)</h4>
				<p>Me as a native Japanese speaker, I often times, use Japanese Characters, plus I learned Chinese these days, I may have chances to read and write in Chinese Characters as well.  Here&#8217;s what I use now for Japanese language.  They are all copied from some of XEmacs distribution package I guess.  It&#8217;s still just a magic spells&#8230;</p>
				<pre class="prettyprint">
;; ============= Japanese language setting ======================                              

;; A. inline input method (window-system)
(when (eq window-system 'mac)
  (add-hook 'minibuffer-setup-hook 'mac-change-language-to-us)
  (mac-translate-from-yen-to-backslash) ;; yen => backslash
  (set-language-info "Japanese" 'input-method "MacOSX") ;; bad fix
  ;; input method in read-only buffer (e.g. C-s in dired-mode)
  (setq mac-pass-key-to-system-on-read-only-buffer t)
  )
;; A. end                                                                                      

;; B. language environment
(set-language-environment "Japanese")
(set-default-coding-systems 'utf-8-unix)
(set-keyboard-coding-system 'utf-8)
(set-clipboard-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
;; (set-file-name-coding-system 'utf-8m) ; already set
(prefer-coding-system 'utf-8-unix)
;; B. end                                                                                      

;; C. fix: Unicode => Japanese mapping
;; Thanks to saiki-san (see [macemacsjp-users 870])
;; register circle around digits to cjk table (by Ando-san)
(defadvice utf-translate-cjk-load-tables
  (after my-ad-circled-digit activate)
  (dotimes (i 20)
    (let ((unicode (+ #x2460 i))
          (char (+ 54433 i)))
      (if (utf-translate-cjk-substitutable-p unicode)
          (puthash unicode char ucs-unicode-to-mule-cjk))
      (puthash char unicode ucs-mule-cjk-to-unicode))))
;; prevent to use half-width marks (by Nanba-san)
(utf-translate-cjk-set-unicode-range
 '((#x2e80 . #xd7a3)
   (#xff00 . #xffef)
   (#xa7 . #xa7)                        ;
   (#xb0 . #xb1)                        ;
   (#xb4 . #xb4)                        ;
   (#xb6 . #xb6)                        ;
   (#xd7 . #xd7)                        ;
   (#xf7 . #xf7)                        ;
   (#x370 . #x3ff)                      ; ギリシャ
   (#x400 . #x4ff)                      ; キリル
   (#x2000 . #x206f)                    ; 一般句読点
   (#x2103 . #x2103)                    ; ℃
   (#x212b . #x212b)                    ; Å
   (#x2190 . #x21ff)                    ; 矢印
   (#x2200 . #x22ff)                    ; 数学記号
   (#x2300 . #x23ff)                    ; 技術記号
   (#x2460 . #x2473)                    ; 円囲み数字
   (#x2500 . #x257f)                    ; 罫線
   (#x25a0 . #x25ff)                    ; 幾何学模様
   (#x2600 . #x26ff)                    ; その他の記号
   ))
;; C. end
</pre>
				<h4>Font for Terminal</h4>
				<p>And for terminal font, I really appreciate Droid Sans Mono.  Droid Family is designed for Google&#8217;s Android.</p>
				<p><a href="http://code.google.com/intl/en/android/download.html">Download the Android SDK</a></p>
				<p>Unzip the archive, and you&#8217;ll find .ttf files under <code class="prettyprint">tools/lib/fonts/default/</code>.  what it&#8217;s cool about is, very readable with small font size, mono space and comes with CJK typeface as well.  License-wise, maybe ok for your personal use, you can at least develop Android with this.  Small note: Android SDK comes with Android.el as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/03/emacs-again-2-auto-save-and-font/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs Again (1): config</title>
		<link>http://blog.nydd.org/2009/03/emacs-again-1-config/</link>
		<comments>http://blog.nydd.org/2009/03/emacs-again-1-config/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 06:55:34 +0000</pubDate>
		<dc:creator>beatak</dc:creator>
				<category><![CDATA[emacs]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://blog.nydd.org/?p=136</guid>
		<description><![CDATA[				As my tradition, I moved, and I changed a title of my blog.  It was called &#8220;Ten Eyck,&#8221; but now it&#8217;s called &#8220;Vantage Point of Queens.&#8221;  Go visit my flickr page, you&#8217;ll see some of my house warming pictures.
				So, I desperately try again on Scheme, Emacs and SICP.  This time, I have [...]]]></description>
			<content:encoded><![CDATA[				<p>As my tradition, I moved, and I changed a title of my blog.  It was called &#8220;Ten Eyck,&#8221; but now it&#8217;s called &#8220;Vantage Point of Queens.&#8221;  <a href="http://flickr.com/photos/beatak/with/3319304755/">Go visit my flickr page</a>, you&#8217;ll see some of my house warming pictures.</p>
				<p>So, I desperately try again on Scheme, Emacs and SICP.  This time, I have a Kindle to read on, a friend working with me (again).  I have experienced more than ever&#8230; Well let&#8217;s see what&#8217;s going on.</p>
				<p>As a first time (and I wish this will keep going on), I will start with writing about how to configure emacs.  Although there are <a href="http://www.emacswiki.org/emacs/EmacsForMacOS">tons of XEmacs implementation on Mac OS X</a>, I run emacs on Terminal.app. I guess it&#8217;s because&#8230; (1) one of the fundamental reason to use emacs is because you can use on almost any platform.  And if I just use one of those &#8220;OS X Specialized&#8221; emacs, then I will not remember how to configure. I don&#8217;t wanna miss anything. <a href="http://www.flickr.com/photos/beatak/3322110512/" title="Terminal.app: &quot;Use Option as meta key&quot; by beatak, on Flickr"><img src="http://farm4.static.flickr.com/3539/3322110512_72d22ae205_m.jpg" width="240" height="192" alt="Terminal.app: Use Option as meta key" align="left" /></a>(2) Terminal.app can do &#8220;Alt as Meta&#8221; natively. (3) Apple keeps evolving Termianl.app.  It has great transparent setting, multi-byte char enable, UTF-8 clear and a lot more.<br style="clear:both;" /></p>
				<p>But I digress. In order to configure emacs, you edit .emacs.el file.  It usually stay on your home directory.  Since it&#8217;s already 21st century and the cloud computing is really coming, why don&#8217;t I put on the cloud?  I setup Dropbox account, and I mkdir-ed ~/Dropbox/config/emacs.  I mv-ed .emacs.el and .emacs.d into there and make a symbolic link to them.  It works great.</p>
				<h4>no welcome message</h4>
				<pre class="prettyprint">(setq inhibit-startup-message t)</pre>
<p>By having this line in your .emacs.el, you don&#8217;t see welcome message anymore. That also indicates that your change is applied to your emacs.</p>
<h4>aggregate all backup craps</h4>
<pre class="prettyprint">(setq make-backup-files t)
(setq backup-directory-alist
  (cons (cons "\\.*$" (expand-file-name "~/.backup"))
    backup-directory-alist))</pre>
				<p>You have to mkdir for this before relaunch emacs. Hmm&#8230; I don&#8217;t see this working.  I may try it later again.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nydd.org/2009/03/emacs-again-1-config/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
