<?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>smallfish logs &#187; Editor</title>
	<atom:link href="http://chenxiaoyu.org/blog/archives/category/editor/feed" rel="self" type="application/rss+xml" />
	<link>http://chenxiaoyu.org</link>
	<description>关注 Python &#38; Go &#38; PostgreSQL</description>
	<lastBuildDate>Sat, 07 Aug 2010 10:31:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>emacs windows配置笔记</title>
		<link>http://chenxiaoyu.org/blog/archives/96</link>
		<comments>http://chenxiaoyu.org/blog/archives/96#comments</comments>
		<pubDate>Thu, 10 Dec 2009 08:53:41 +0000</pubDate>
		<dc:creator>smallfish</dc:creator>
				<category><![CDATA[Editor]]></category>
		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://chenxiaoyu.org/blog/?p=96</guid>
		<description><![CDATA[俺最新.emcas配置地址是：http://github.com/smallfish/editor/blob/master/emacs/.emacs
最近手痒，看到不少牛x人物都是用emacs，遂在windows下装一个玩玩。
下载地址：http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-23.1-bin-i386.zip
解压到：D:\emacs-23.1
可以看到bin、etc、lisp等目录。主要运行都在bin目录。
runemacs.exe   这个就是运行文件拉，可以发送到桌面快捷方式。
可以运行一下addpm.exe这个，其作用就是把emacs加入到开始程序菜单里。
试着运行一下runemacs.exe，可以发现默认光标的位置，那是一个入门教程喔，还是中文的耶~
建议都看下这个入门的教程，常用的快捷键都有说明。
接下来加点常用的功能把，比如显示行号，goto line的功能。(俺也只配置了这个两项)
配置文件主要是_emacs或者.emacs，win下建议_emacs，点号开头的文件需要到cmd下才行。
_emacs文件放到哪儿呢？俺是直接修改了win注册表选项。
选项是：HKEY_CURRENT_USER\Software\GNU\Emacs，注意GNU\Emacs是需要新建的。接下来在Emacs里新建一个HOME项，值是你的emacs路径，比如我的：D:\emacs-23.1\bin。
然后需要做的就是把_emacs文件在这个bin目录下。
经过几经周折，显示行号和goto功能的配置如下：
(global-linum-mode 1)
(global-set-key [(meta g)] 'goto-line)
第一行是显示行号
第二行是设置meta+g转到goto功能，meta在windows下可以用alt来操作。
其他功能以后在后续补上，快捷键挺多，用了一会手指发酸。C-x 数字(1 2 3)挺好，可以开多窗口浏览了。

© smallfish for smallfish logs, 2009. &#124;
Permalink &#124;
One comment &#124;
Add to
del.icio.us

Post tags: Emacs







Feed enhanced by Better Feed from  Ozh
]]></description>
			<content:encoded><![CDATA[<p>俺最新.emcas配置地址是：<a href="http://github.com/smallfish/editor/blob/master/emacs/.emacs" target="_blank">http://github.com/smallfish/editor/blob/master/emacs/.emacs</a></p>
<p>最近手痒，看到不少牛x人物都是用emacs，遂在windows下装一个玩玩。</p>
<p>下载地址：<a href="http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-23.1-bin-i386.zip" target="_blank">http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-23.1-bin-i386.zip</a></p>
<p>解压到：D:\emacs-23.1</p>
<p>可以看到bin、etc、lisp等目录。主要运行都在bin目录。</p>
<p>runemacs.exe   这个就是运行文件拉，可以发送到桌面快捷方式。</p>
<p>可以运行一下addpm.exe这个，其作用就是把emacs加入到开始程序菜单里。</p>
<p>试着运行一下runemacs.exe，可以发现默认光标的位置，那是一个入门教程喔，还是中文的耶~</p>
<p>建议都看下这个入门的教程，常用的快捷键都有说明。</p>
<p>接下来加点常用的功能把，比如显示行号，goto line的功能。(俺也只配置了这个两项)</p>
<p>配置文件主要是_emacs或者.emacs，win下建议_emacs，点号开头的文件需要到cmd下才行。</p>
<p>_emacs文件放到哪儿呢？俺是直接修改了win注册表选项。</p>
<p>选项是：<strong>HKEY_CURRENT_USER\Software\GNU\Emacs</strong>，注意GNU\Emacs是需要新建的。接下来在Emacs里新建一个<strong>HOME</strong>项，值是你的emacs路径，比如我的：D:\emacs-23.1\bin。</p>
<p>然后需要做的就是把_emacs文件在这个bin目录下。</p>
<p>经过几经周折，显示行号和goto功能的配置如下：</p>
<pre>(global-linum-mode 1)
(global-set-key [(meta g)] 'goto-line)</pre>
<p>第一行是显示行号</p>
<p>第二行是设置meta+g转到goto功能，meta在windows下可以用alt来操作。</p>
<p>其他功能以后在后续补上，快捷键挺多，用了一会手指发酸。C-x 数字(1 2 3)挺好，可以开多窗口浏览了。</p>
<hr />
<p><small>© smallfish for <a href="http://chenxiaoyu.org">smallfish logs</a>, 2009. |
<a href="http://chenxiaoyu.org/blog/archives/96">Permalink</a> |
<a href="http://chenxiaoyu.org/blog/archives/96#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://chenxiaoyu.org/blog/archives/96&title=emacs windows配置笔记">del.icio.us</a>
<br/>
Post tags: <a href="http://chenxiaoyu.org/blog/archives/tag/emacs" rel="tag">Emacs</a><br/>
</small></p>
<p>
<script type="text/javascript"><!--
google_ad_client = "pub-8914011260472945";
/* 468x60, 创建于 09-11-19 */
google_ad_slot = "7198645178";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://chenxiaoyu.org/blog/archives/96/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
