Emacs中文手册:入门到精通

需积分: 49 16 下载量 101 浏览量 更新于2024-07-21 收藏 1.01MB PDF 举报
"Emacs中文手册提供了全面的Emacs编辑器指南,从基础到高级功能,适合初学者入门和进阶学习。" Emacs是一个强大的文本编辑器,由GNU项目开发,是自由软件基金会(FSF)的核心项目之一。GNU代表“Gnu's Not Unix”,表明它是基于Unix哲学但提供自由软件替代方案的编辑器。Emacs以其高度可扩展性和自定义能力著称,允许用户通过Lisp方言编写自己的配置和功能。 手册首先介绍了GNU项目和GNU Emacs的背景,阐述了其开放源代码和自由软件的重要性。接着,手册详细讲解了Emacs的在线辅助说明,包括基本知识、自我学习教程以及Ctrl-h的快捷键用法,这些帮助用户快速熟悉Emacs的操作环境。Emacs的Info系统是一个内置的文档阅读器,用户可以通过它来获取关于Emacs的详细信息。 在整合环境部分,手册涵盖了如何在Emacs中执行Shell命令、管理目录、编辑远程文件、程序编辑、编译与测试,甚至如何打印文件和收发邮件。这些功能使得Emacs成为一个完整的开发环境,不仅限于文本编辑。此外,还讨论了Emacs与其他工作环境的集成,增强了其多功能性。 Emacs的基本编辑指令是手册的核心内容,包括如何加载和保存文件、基本的文本操作如剪切、复制、粘贴(Yanking)、标记、移动和拷贝,以及撤销(Undo)功能。这些基础操作对于任何用户来说都是必不可少的。 进阶编辑指令部分,手册深入探讨了文件的搜索和替换功能,以及正则表达式(RegularExpression)的应用,这些都是高效编辑和查找文本的关键。 Emacs的其他相关事项涵盖了注册(Registers)和书签(Bookmarks)的使用,帮助用户管理编辑会话和常用位置;文字校对和图形编辑功能,增强了Emacs在处理专业文档时的能力。 针对中文编辑环境,手册专门介绍了在Emacs下进行中文编辑的方法,以及Mule——Emacs的多语言扩展,使Emacs支持多种语言输入和编辑。 总结部分,回顾了Emacs的重要特性,强调了它的灵活性、自定义能力和作为一个全能编辑器的角色。通过这个中文手册,用户可以全面掌握Emacs的使用,无论是日常文本编辑还是复杂的编程任务,都能得心应手。
2017-09-25 上传
Short Contents Preface .................................................. 1 Distribution .............................................. 2 Introduction ............................................. 5 1 The Organization of the Screen .......................... 6 2 Characters, Keys and Commands ........................ 11 3 Entering and Exiting Emacs ............................ 14 4 Basic Editing Commands .............................. 16 5 The Minibuffer ....................................... 26 6 Running Commands by Name .......................... 36 7 Help ............................................... 38 8 The Mark and the Region .............................. 47 9 Killing and Moving Text ............................... 54 10 Registers ........................................... 66 11 Controlling the Display ................................ 71 12 Searching and Replacement ............................ 92 13 Commands for Fixing Typos ........................... 115 14 Keyboard Macros .................................... 121 15 File Handling ....................................... 129 16 Using Multiple Buffers ............................... 154 17 Multiple Windows ................................... 163 18 Frames and Graphical Displays ........................ 170 19 International Character Set Support .................... 186 20 Major and Minor Modes .............................. 208 21 Indentation ......................................... 214 22 Commands for Human Languages ...................... 217 23 Editing Programs .................................... 249 24 Compiling and Testing Programs ....................... 271 25 Maintaining Large Programs ........................... 291 26 Abbrevs ........................................... 322 27 Dired, the Directory Editor ............................ 328 28 The Calendar and the Diary ........................... 345 29 Sending Mail ....................................... 364 30 Reading Mail with Rmail ............................. 373 ii 31 Miscellaneous Commands ............................. 393 32 Emacs Lisp Packages ................................. 425 33 Customization ...................................... 429 34 Dealing with Common Problems ....................... 461 A GNU GENERAL PUBLIC LICENSE ................... 478 B GNU Free Documentation License ...................... 489 C Command Line Arguments for Emacs Invocation .......... 497 D X Options and Resources ............................. 512 E Emacs 24 Antinews .................................. 519 F Emacs and Mac OS / GNUstep ........................ 522 G Emacs and Microsoft Windows/MS-DOS ................ 525 The GNU Manifesto ..................................... 535 Glossary ............................................... 543 Key (Character) Index ................................... 566 Command and Function Index ............................. 576 Variable Index .......................................... 590 Concept Index .......................................... 598