﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Keep it simple-随笔分类-Emacs 相关</title><link>http://www.cppblog.com/luyiqi/category/11139.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 09 Jul 2009 15:06:55 GMT</lastBuildDate><pubDate>Thu, 09 Jul 2009 15:06:55 GMT</pubDate><ttl>60</ttl><item><title>Learning Emacs(5) : Shell mode</title><link>http://www.cppblog.com/luyiqi/archive/2009/07/06/89408.html</link><dc:creator>luyiqi</dc:creator><author>luyiqi</author><pubDate>Mon, 06 Jul 2009 13:59:00 GMT</pubDate><guid>http://www.cppblog.com/luyiqi/archive/2009/07/06/89408.html</guid><wfw:comment>http://www.cppblog.com/luyiqi/comments/89408.html</wfw:comment><comments>http://www.cppblog.com/luyiqi/archive/2009/07/06/89408.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyiqi/comments/commentRss/89408.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyiqi/services/trackbacks/89408.html</trackback:ping><description><![CDATA[Learning Emacs:Shell 编辑缓冲区<br>1.一次执行一条shell命令<br>M-! Emacs提示输入一条准备执行的命令,Emacs会把执行接过放到*shell command output*缓冲区中。<br><br>2.<br>在标记完文本块之后，使用M-|，Emacs会提示输入一条shell命令，Emacs会对选中区域执行该shell命令。<br><br>3.<br>C-u M-! + command&nbsp; Emacs会把命令执行的结果放到当前的缓冲区中。<br><br>4.shell模式<br>M-x shell&nbsp; 进入shell模式。<br>在shell模式中，C-c C-c终止一个程序，C-c C-z 挂起一个程序。<br>M-p 检索前一条命令<br>M-n 检索后一条命令<br>Tab&nbsp; 命令补完<br><br><br>  <img src ="http://www.cppblog.com/luyiqi/aggbug/89408.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyiqi/" target="_blank">luyiqi</a> 2009-07-06 21:59 <a href="http://www.cppblog.com/luyiqi/archive/2009/07/06/89408.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>learing Emacs(4):窗口与编辑区</title><link>http://www.cppblog.com/luyiqi/archive/2009/07/04/89216.html</link><dc:creator>luyiqi</dc:creator><author>luyiqi</author><pubDate>Sat, 04 Jul 2009 03:33:00 GMT</pubDate><guid>http://www.cppblog.com/luyiqi/archive/2009/07/04/89216.html</guid><wfw:comment>http://www.cppblog.com/luyiqi/comments/89216.html</wfw:comment><comments>http://www.cppblog.com/luyiqi/archive/2009/07/04/89216.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyiqi/comments/commentRss/89216.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyiqi/services/trackbacks/89216.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Learning Emacs&nbsp;&nbsp;<a href='http://www.cppblog.com/luyiqi/archive/2009/07/04/89216.html'>阅读全文</a><img src ="http://www.cppblog.com/luyiqi/aggbug/89216.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyiqi/" target="_blank">luyiqi</a> 2009-07-04 11:33 <a href="http://www.cppblog.com/luyiqi/archive/2009/07/04/89216.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Learning Emacs(3)</title><link>http://www.cppblog.com/luyiqi/archive/2009/07/04/89201.html</link><dc:creator>luyiqi</dc:creator><author>luyiqi</author><pubDate>Fri, 03 Jul 2009 16:55:00 GMT</pubDate><guid>http://www.cppblog.com/luyiqi/archive/2009/07/04/89201.html</guid><wfw:comment>http://www.cppblog.com/luyiqi/comments/89201.html</wfw:comment><comments>http://www.cppblog.com/luyiqi/archive/2009/07/04/89201.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyiqi/comments/commentRss/89201.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyiqi/services/trackbacks/89201.html</trackback:ping><description><![CDATA[常用查找功能：（查找之前可以用M-&lt;回到buffer开头，或者M-&gt;到buffer末尾）<br>1.递增查找：<br>C-s&nbsp; 向前搜索<br>C-r&nbsp; 向后搜索<br>回车 退出搜索<br>C-g&nbsp; 取消搜索操作<br>C-s+C-w 将光标处的单词作为查找字符串<br>C-s+C-y 将从光标到行尾的文本作为查找字符串<br>C-s+C-s 重复刚才的查找操作<br><br>2.简单查找：<br>C-s 回车 <span style="font-style: italic;">key</span> 回车&nbsp; 向前搜索<br>C-r 回车 <span style="font-style: italic;">key</span> 回车&nbsp; 向后搜索<br><br>替换功能：<br>1.基本替换：<br>M-x <span style="font-weight: bold;">replace-string</span> 回车 <span style="font-style: italic;">key</span> 回车 <span style="font-style: italic;">replace</span> 回车<br>注：只会替代从光标开始到buffer末尾所有满足条件的字符串<br><br>2.查询-替换：<br>M-% 开始查询-替换<br>空格或者y&nbsp; 用新字符串替换，前进到下一个位置<br>DEL或者n&nbsp; 不替换，前进到下一位置<br>.&nbsp; 在当前位置替换完以后退出查询-替换操作<br>,&nbsp; 替换（再按下空格或者y才前进到下一位置）<br>!&nbsp; 对之后的文本不询问，全部替换<br>^&nbsp; 返回上一个位置<br>回车或者q&nbsp; 推出查询-替换操作<br><br><br><br><br><br>  <img src ="http://www.cppblog.com/luyiqi/aggbug/89201.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyiqi/" target="_blank">luyiqi</a> 2009-07-04 00:55 <a href="http://www.cppblog.com/luyiqi/archive/2009/07/04/89201.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Learning Emacs(2)</title><link>http://www.cppblog.com/luyiqi/archive/2009/07/01/89014.html</link><dc:creator>luyiqi</dc:creator><author>luyiqi</author><pubDate>Wed, 01 Jul 2009 10:57:00 GMT</pubDate><guid>http://www.cppblog.com/luyiqi/archive/2009/07/01/89014.html</guid><wfw:comment>http://www.cppblog.com/luyiqi/comments/89014.html</wfw:comment><comments>http://www.cppblog.com/luyiqi/archive/2009/07/01/89014.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyiqi/comments/commentRss/89014.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyiqi/services/trackbacks/89014.html</trackback:ping><description><![CDATA[Learning Emacs 第二章：<br>一、光标移动：<br>常用命令：<br>C-f 向前移动一个字符<br>C-b 向后移动一个字符<br>C-n 向下移动一行<br>C-p 向上移动一行<br>M-f 向前一个单词<br>M-b 向后一个单词<br>C-a 光标移动到行首<br>C-e 光标移动到行尾<br>M-a 光标前移一个句子<br>M-e 光标后移一个句子<br>M-{ 光标前移一个段落<br>M-} 光标后移一个段落<br>C-x+[ 光标前移一页<br>C-x+] 光标后移一页<br><br>C-l 刷新X window，重新绘制屏显画面<br>M-x goto-line 光标前进到文件的第n行<br>M n 重复执行n次后续命令<br>C-u n 重复执行n次后续命令<br><br>二、文本块删除、复制<br>C-d 删除光标所在位置的字符<br>M-d 删除光标后面的单词<br>C-k 从光标位置删除到行尾<br>DEL（backspace） 删除光标前面的字符<br>M-DEL 删除光标前面的单词<br>M-k 删除光标后面的句子<br><br>C-@ 标记文本块起点<br>C-w 剪切文本块<br>M-w 复制文本块<br>C-y 粘帖<br><br><br> <img src ="http://www.cppblog.com/luyiqi/aggbug/89014.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyiqi/" target="_blank">luyiqi</a> 2009-07-01 18:57 <a href="http://www.cppblog.com/luyiqi/archive/2009/07/01/89014.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Learning Emacs</title><link>http://www.cppblog.com/luyiqi/archive/2009/06/30/88937.html</link><dc:creator>luyiqi</dc:creator><author>luyiqi</author><pubDate>Tue, 30 Jun 2009 13:16:00 GMT</pubDate><guid>http://www.cppblog.com/luyiqi/archive/2009/06/30/88937.html</guid><wfw:comment>http://www.cppblog.com/luyiqi/comments/88937.html</wfw:comment><comments>http://www.cppblog.com/luyiqi/archive/2009/06/30/88937.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/luyiqi/comments/commentRss/88937.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/luyiqi/services/trackbacks/88937.html</trackback:ping><description><![CDATA[Learning Emacs第一章：<br>文件操作：<br>命令：<br>查找（打开）文件：C-x C-f<br>查找（打开）另一个文件,替代现有文件：C-x C-v<br>保存文件：C-x C-s<br>把buffer存入文件：C-x C-w<br>退出emacs：C-x C-c<br><br>帮助相关：<br>进入联机帮助：C-h<br><br>（C：ctrl<br>&nbsp;&nbsp;&nbsp; M：Meta，或者是alt）<br>   <img src ="http://www.cppblog.com/luyiqi/aggbug/88937.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/luyiqi/" target="_blank">luyiqi</a> 2009-06-30 21:16 <a href="http://www.cppblog.com/luyiqi/archive/2009/06/30/88937.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>