随笔分类 -  Emacs

喜欢上了Emacs
摘要:早就听说Emacs是编辑器之神,功能强大确实让人折服。我也是这个礼拜才开始学习emacs的,先花一晚上看完了Learning Gnu Emacs ,感觉基本的文本上下左右等的操作没问题了。但感觉emacs的皮毛都还没有学到,于是又看了Emacs Tutorial中文指南这才发现用惯了windows的我们用起这些命令编辑器确实很难(以前我都是用EditPlusPlus写写代码的)。用emacs多写了几天的代码感觉确实方便,C mode 也会帮我们自动控制代码格式,命令模式也很好用,可以随便查找一行(goto-line),改起代码来也方便多了。而且文件的新建打开完全只需启动emacs就可以了。在w 阅读全文

posted @ 2012-03-09 18:59 X.P.Chen 阅读(161) 评论(0) 推荐(0)

Emacs编辑命令速查4【摘自Learning Gnu Emacs】
摘要:Table E-19. Lisp commands (Chapter 9)KeystrokesCommand nameActionC-M-bbackward-sexpMove backward by one S-expression.C-M-fforward-sexpMove forward by one S-expression.C-M-ttranspose-sexpsTranspose the two S-expressions around the cursor.C-M-@mark-sexpSet mark to the end of the current S-expression; 阅读全文

posted @ 2012-03-06 14:42 X.P.Chen 阅读(166) 评论(0) 推荐(0)

Emacs编辑命令速查3【摘自Learning Gnu Emacs 】
摘要:Table E-13. Macro commands (Chapter 6)KeystrokesCommand nameActionC-x (kmacro-start-macroStart macro definition.F3kmacro-start-macro-or-insert-counterStart macro definition. If pressed while defining a macro, insert a counter.C-x )kmacro-end-macroEnd macro definition.F4kmacro-end-or-call-macroEnd ma 阅读全文

posted @ 2012-03-06 14:41 X.P.Chen 阅读(151) 评论(0) 推荐(0)

Emacs编辑命令速查2【摘自Learning Gnu Emacs】
摘要:Table E-7. Regular expression search commands (Chapter 3)KeystrokesCommand nameActionC-M-s EnterEditSearchRegexp Forwardre-search-forwardSearch for a regular expression forward.C-M-r EnterEditSearchRegexp Backwardsre-search-backwardSearch for a regular expression backward.C-M-sEditSearchIncremental 阅读全文

posted @ 2012-03-06 14:39 X.P.Chen 阅读(129) 评论(0) 推荐(0)

Emacs编辑命令速查表1【摘自Learning Gnu Emacs】
摘要:Table E-1. File-handling commands (Chapter 1)KeystrokesCommand nameActionC-x C-fFileOpen Filefind-fileFind file and read it in a new buffer.C-x C-vfind-alternate-fileRead an alternate file, replacing the one read withC-x C-f.C-x iFileInsert Fileinsert-fileInsert file at cursor position.C-x C-sFileSa 阅读全文

posted @ 2012-03-06 14:37 X.P.Chen 阅读(163) 评论(0) 推荐(0)

Emacs编辑命令速查
摘要:Emacs编辑命令速查Emacs 启动:$ emacs 如果有X-windows就会以视窗方式启动$ emacs -nw 不开视窗启动一些按键的约定:C- Control-(即 Ctrl-),按住 Ctrl 键再按其他键M- Meta-(或 Alt-),按住 Alt 键再按其他键;或按一下 ESC,再按其他键C-M- Control-Alt-,按住 Ctrl 和 Alt 两个键再按其他键point 位点。文档中的一个位置,一般是光标的左下角mark 标记。由命令设置,用来定义/保存文档中的位置信息region 区域。在 mark 和 point 之间部分,称为一个 regionRET 回... 阅读全文

posted @ 2012-03-06 14:15 X.P.Chen 阅读(227) 评论(0) 推荐(0)

导航