没有合适的资源?快使用搜索试试~ 我知道了~
Writing GNU Emacs Extensions
5星 · 超过95%的资源 需积分: 9 83 下载量 123 浏览量
2014-08-16
06:03:54
上传
评论 1
收藏 1.33MB PDF 举报
温馨提示
emacs 教程 Writing GNU Emacs Extensions pdf
资源推荐
资源详情
资源评论
Page ii
Writing GNU Emacs Extensions
Bob Glickstein
O'REILLY
Cambridge • Koln • Paris • Sebastopol • Tokyo
Page iv
Writing GNU Emacs Extensions
by Bob Glickstein
Copyright © 1997 O'Reilly & Associates, Inc. All rights reserved.
Printed in the United States of America.
Editor: Andy Oram
Production Editors: Kismet McDonough-Chan and Ellie Fountain Maden
Printing History:
April 1997: First Edition.
Nutshell Handbook and the Nutshell Handbook logo are registered trademarks and The Java
Series is a trademark of O'Reilly & Associates, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in this book, and O'Reilly &
Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or
initial caps.
While every precaution has been taken in the preparation of this book, the publisher assumes no
responsibility for errors or omissions, or for damages resulting from the use of the information
contained herein.
This book is printed on acid-free paper with 85% recycled content, 15% post-consumer waste.
O'Reilly & Associates is committed to using paper with the highest recycled content available
consistent with high quality.
ISBN: 1-56592-261-1 [8/97]
Page v
For Mom and Dad, without whom. . .
well, I'd just rather not think about it.
Page vii
Table of Contents
Preface xi
1. Customizing Emacs 1
Backspace and Delete
1
Lisp
2
Keys and Strings
4
To What Is C-h Bound?
7
To What Should C-h Be Bound?
8
Evaluating Lisp Expressions
8
Apropos
10
2. Simple New Commands 13
Traversing Windows
13
Line-at-a-Time Scrolling
21
Other Cursor and Text Motion Commands
23
Clobbering Symbolic Links
24
Advised Buffer Switching
30
Addendum: Raw Prefix Argument
33
3. Cooperating Commands 34
The Symptom
34
A Cure
35
Generalizing the Solution
40
40
4. Searching and Modifying Buffers 47
Inserting the Current Time
47
Page viii
Writestamps
50
Modifystamps
65
5. Lisp Files 71
Creating a Lisp File
71
Loading the File
72
Compiling the File
76
eval-after-load
77
Local Variables Lists
78
Addendum: Security Consideration
80
6. Lists 81
The Simple View of Lists
81
List Details
83
Recursive List Functions
85
Iterative List Functions
87
Other Useful List Functions
87
Destructive List Operations
89
Circular Lists?!
93
7. Minor Mode 95
Paragraph Filling
95
Modes
96
Defining a Minor Mode
97
Mode Meat
99
99
8. Evaluation and Error Recovery 110
limited-save-excursion
110
eval
111
Macro Functions
112
Backquote and Unquote
113
Return Value
116
Failing Gracefully
119
Point Marker
120
9. A Major Mode 122
My Quips File
122
Major Mode Skeleton
123
Changing the Definition of a Paragraph
125
Quip Commands
126
Page ix
Keymaps
127
Narrowing
130
Derived Modes
131
10. A Comprehensive Example 133
New York Times Rules
133
Data Representation
134
User Interface
141
Setting Up the Mode
148
Tracking Unauthorized Changes
157
Parsing the Buffer
162
162
Word Finder
163
Last Word
181
Conclusion 183
A. Lisp Quick Reference 185
Basics
185
Data Types
186
Control Structure
190
Code Objects
193
B. Debugging and Profiling 195
Evaluation
195
The Debugger
195
Edebug
197
The Profiler
198
C. Sharing Your Code 200
Preparing Source Files
200
Documentation
201
Copyright
201
Posting
202
D. Obtaining and Building Emacs 203
Availability of Packages
203
Unpacking, Building, and Installing Emacs
205
Index 207
Page xi
剩余218页未读,继续阅读
资源评论
- zou_mono2017-10-15扩展emacs功能的入门书籍
- ye_9th2016-04-05文档清晰,谢谢分享
djf_1234
- 粉丝: 0
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功