Publisher: O'Reilly Media Released: April 1997 Pages: 240
Yes, it is possible to be all things to all people, if you're talking about the Emacs editor. As a user, you can make any kind of customization you want, from choosing the keystrokes that invoke your favorite commands to creating a whole new work environment that looks like nothing ever developed before. It's all in Emacs Lisp -- and in this short but fast-paced book. GNU Emacs is more than an editor; it's a programming environment, a communications package, and many other things. To provide such a broad range of functions, it offers a full version of the Lisp programming language -- something much more powerful than the little macro languages provided in other editors (including older versions of Emacs). GNU Emacs is a framework in which you can create whole new kinds of editors or just alter aspects of the many functions it already provides. In this book, Bob Glickstein delves deep into the features that permit far-reaching Emacs customizations. He teaches you the Lisp language and discusses Emacs topics (such as syntax tables and macro templates) in easy-to-digest portions. Examples progress in complexity from simple customizations to extensive major modes. You will learn how to write interactive commands, use hooks and advice, perform error recovery, manipulate windows, buffers, and keymaps, exploit and alter Emacs's main loop, and more. Each topic is explored through realistic examples and a series of successive refinements that illustrate not only the Emacs Lisp language, but the development process as well, making learning pleasant and natural. |
-
Chapter 1 Customizing Emacs -
Backspace and Delete -
Lisp -
Keys and Strings -
To What Is C-h Bound? -
To What Should C-h Be Bound? -
Evaluating Lisp Expressions -
Apropos -
Chapter 2 Simple New Commands -
Traversing Windows -
Line-at-a-Time Scrolling -
Other Cursor and Text Motion Commands -
Clobbering Symbolic Links -
Advised Buffer Switching -
Addendum: Raw Prefix Argument -
Chapter 3 Cooperating Commands -
The Symptom -
A Cure -
Generalizing the Solution -
Chapter 4 Searching and Modifying Buffers -
Inserting the Current Time -
Writestamps -
Modifystamps -
Chapter 5 Lisp Files -
Creating a Lisp File -
Loading the File -
Compiling the File -
eval-after-load -
Local Variables Lists -
Addendum: Security Consideration -
Chapter 6 Lists -
The Simple View of Lists -
List Details -
Recursive List Functions -
Iterative List Functions -
Other Useful List Functions -
Destructive List Operations -
Circular Lists?! -
Chapter 7 Minor Mode -
Paragraph Filling -
Modes -
Defining a Minor Mode -
Mode Meat -
Chapter 8 Evaluation and Error Recovery -
limited-save-excursion -
eval -
Macro Functions -
Backquote and Unquote -
Return Value -
Failing Gracefully -
Point Marker -
Chapter 9 A Major Mode -
My Quips File -
Major Mode Skeleton -
Changing the Definition of a Paragraph -
Quip Commands -
Keymaps -
Narrowing -
Derived Modes -
Chapter 10 A Comprehensive Example -
New York Times Rules -
Data Representation -
User Interface -
Setting Up the Mode -
Tracking Unauthorized Changes -
Parsing the Buffer -
Word Finder -
Last Word -
Appendix Conclusion -
Appendix Lisp Quick Reference -
Basics -
Data Types -
Control Structures -
Code Objects -
Appendix Debugging and Profiling -
Evaluation -
The Debugger -
Edebug -
The Profiler -
Appendix Sharing Your Code -
Preparing Source Files -
Documentation -
Copyright -
Posting -
Appendix Obtaining and Building Emacs -
Availability of Packages -
Unpacking, Building, and Installing Emacs -
Colophon |
- Title:
- Writing GNU Emacs Extensions
- By:
- Bob Glickstein
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- April 1997
- Ebook:
- July 2010
- Pages:
- 240
- Print ISBN:
- 978-1-56592-261-7
- | ISBN 10:
- 1-56592-261-1
- Ebook ISBN:
- 978-1-4493-9504-9
- | ISBN 10:
- 1-4493-9504-X
|
-
Bob Glickstein Bob Glickstein's dog, Alex, says Bob is generous with treats and takes her to the park a lot. Alex remembers the time in the mid- to late 1980s when Bob was first exposed to Lisp at Carnegie Mellon University and created the Lisp-like filtering language FLAMES for the Andrew Message System. She is dimly aware of the way in which Bob's familiarity with Lisp helped him to overcome his initial dislike of Emacs, with the result that he is now an ardent Emacs advocate. Nowadays, she enjoys playing on the beaches and mountains of Northern California while Bob devises new ways to use Emacs for writing email software at Zanshin, Inc. View Bob Glickstein's full profile page. |
Colophon Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal featured on the cover of Writing GNU Emacs Extensions is a giraffe. Reaching heights of up to 19 feet, the giraffe is the world's tallest animal. Once found all over Africa, giraffes now live only in the grasslands from south of the Sahara almost to Cape Town. Giraffes' markings resemble the appearance of sun and shadows on tree trunks, giving them a degree of camouflage when eating. Each animal's markings are unique, similar to a human fingerprint. Giraffes eat mainly young leaves and shoots, primarily of the acacia and mimosa trees. In addition to using their long necks to reach leaves at the tops of trees, they use their tongues, which extend for almost 20 inches, to grab and pluck off leaves from even the most remote parts of trees. Giraffes spend approximately 50 percent or more of their waking hours eating. The lifespan of giraffes in the wild is estimated to be 20 to 25 years. Adult giraffes have little to fear from predators. Their strong legs and hooves are excellent defensive weapons, and they are rarely attacked, even by lions. Giraffes live together quite peaceably, but there are occasional hierarchical fights among giraffe bulls. In these fights the bulls use their necks as weapons. Although the blows they deliver are powerful, serious injury rarely results from these fights, and kicks are never employed. When one giraffe is ready to concede superiority he takes a few steps back. The loser of the battle is usually allowed to continue living with the herd, and the combatants occasionally rub necks after the fight has been decided. Giraffes give birth while standing, meaning that newborns fall more than 6 feet to ground upon birth. Young giraffes weigh well over 200 pounds at birth, and are approximately six feet tall. They grow approximately three inches per month until fully grown. Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced with Quark XPress 3.5 using the ITC Garamond font. The inside layout was designed by Nancy Priest and implemented in FrameMaker 5.0 by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book. The illustrations that appear in the book were created in Macromedia Freehand by Chris Reilley. This colophon was written by Clairemarie Fisher O'Leary. Sheryl Avruch was the production manager. Nicole Gipson Arigo performed quality control checks. Kathleen Kenny was in charge of international editions. Ellie Fountain Maden acted as assistant production editor. Seth Maislin wrote the index. Kismet McDonough-Chan was the project manager and copyeditor. Madeleine Newell entered edits as a freelance production editor. Sue Willing was the print coordinator. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By James Snell, Doug Tidwell, Pavel Kulchenko
December 2001
Ebook: $27.99
Print & Ebook: $38.45
Print: $34.95
By Tim Riley, Adam Goucher
October 2009
Ebook: $39.99
Print & Ebook: $54.99
Print: $49.99
By Ed Burnette
November 2009
|
Customer Reviews
|
|
|