现在的位置: 首页 > 综合 > 正文

强大而异类的Emacs

2012年12月08日 ⁄ 综合 ⁄ 共 866字 ⁄ 字号 评论关闭
无意中看到Emacs的一个用法,于是打开电脑上这个异类的程序。发现似乎根本看不懂菜单的快捷键,看了Tutorial才知道:

Emacs commands generally involve the CONTROL key (sometimes labelled CTRL or CTL) or the META key.  On some keyboards, the META key is labelled ALT or EDIT or something else (for example, on Sun keyboards, the diamond key to the left of the spacebar is META).  If you have no META key, you can use ESC instead.  Rather than write out META or CONTROL each time we want you to prefix a character, we'll use the following abbreviations:

 C-<chr>  means hold the CONTROL key while typing the character <chr>. Thus, C-f would be: hold the CONTROL key and type f.
 M-<chr>  means hold the META key down while typing <chr>. If there is no META key, type <ESC>, release it, then type the character <chr>.

对于各种它认识的文件类型,它都会在菜单中出现相应的操作菜单,如果扩展名是.cc/.cpp,会自动添加一个"C++"的菜单,有注释段落,格式化段落 等功能;如 果扩展名是.htm,菜单会自动添加"HTML","SGML"两组菜单,有插入一些常用的标签,如链接,图片,标题等等。当然这只是其中一小部分的功 能,希望以后能继续学习、发现……

在瞎碰时发现:键盘上的“Context键”(紧挨着Windows键的)能起到M-x的作用;而XEmacs比Emacs更符合一般的习惯操作。

【上篇】
【下篇】

抱歉!评论已关闭.