Learning GNU Emacs - ?· Preface xvi Why Read This Book? xvi Which Emacs is Which? xviii GNU Emacs and…

Download Learning GNU Emacs - ?· Preface xvi Why Read This Book? xvi Which Emacs is Which? xviii GNU Emacs and…

Post on 04-Jun-2018

212 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

<ul><li><p>Learning GNU Emacs</p><p>Debra Cameron and Bill Rosenblatt</p></li><li><p>Preface xvi</p><p>Why Read This Book? xviWhich Emacs is Which? xvii iGNU Emacs and the Free Software Foundation xixAn Approach to Learning Emacs xxi</p><p>What We Haven't Included</p><p>'Conventions Used in This Handbook xxiv</p><p>Emacs Commands xxivExamples xxvFont Usage xxvi</p><p>Acknowledgments xxvii</p><p>Chapter 1 Emacs Basics 1</p><p>Introducing Emacs! 1Understanding Files and Buffers 3A Word about Modes 4Starting Emacs 6About the Emacs Screen 7Emacs Commands 8Reading a File 9</p><p>Letting Emacs Fill in the Blanks 1 1Inserting and Appending Files 1 2How Emacs Chooses a Default Directory 1 3</p><p>Saving Files : 1 3Leaving Emacs 1 4</p><p>Temporarily Suspending Emacs 1 4Customizing Emacs and its Pitfalls 1 5Getting Help 1 7Summary 1 9</p><p>Problem Checklist 20</p></li><li><p>Chapter 2 Editing Files 22</p><p>Text Mode and Fill Mode 23What Happens Without Fill Mode 23</p><p>Moving the Cursor 24Repeating Commands 25Other Ways to Move the Cursor 27Moving a Screen (or More) at a Time 29Redisplaying the Screen 30</p><p>Deleting Text 3 1Recovering What You've Deleted 32</p><p>Marking Text to Delete, Move, or Copy 35Copying Text 38More about the Kill Ring 39</p><p>Reformatting Paragraphs 40Stopping and Undoing Commands 41</p><p>Stopping Commands 42Undoing Changes 42Backup Files 43</p><p>Editing Tricks and Shortcuts 44Fixing Transpositions 44Capitalization 45Typing over Old Text with Overwrite Mode 47Problem Checklist 47</p><p>Chapter 3 Search and Replace Operations 49</p><p>Different Kinds of Searches 4 9Incremental Search 5 1Simple Searches 54Word Search 5 5</p><p>Search and Replace 5 5Simple Search and Replace Operations 56Query-replace 57Recursive Editing 59Are Emacs Searches Case-sensitive? 60Regular Expressions for Search and Replacement Operations 6 1</p><p>Checking Spelling 6 3Word Abbreviation Mode 67</p><p>Trying Word Abbreviations for One Session 69Making Word Abbreviations Part of Your Startup 70</p></li><li><p>Deleting a Word Abbreviation 70Disabling Word Abbreviations 71Abbreviations and Capitalization 72</p><p>Chapter 4 Using Buffers and Windows 74</p><p>Files, Buffers, and Windows 74Working with Multiple Buffers 76</p><p>Saving Multiple Buffers 78Deleting Buffers 7 8Renaming Buffers 79Read-only Buffers 8 0Getting a List of Buffers 8 0Working with the Buffer List 82</p><p>Working with Windows 8 5Creating Horizontal Windows 8 6Creating Vertical or Side-by-side Windows 87Moving Between Windows 8 8Getting Rid of Windows 9 0Growing Windows and Shrinking Them 9 0Shortcut Commands for Working with Other Windows 92Comparing Files Between Windows 92Displaying Buffers from the Buffer List 9 4</p><p>Chapter 5 Emacs as a Work Environment 9 5</p><p>Working with Mail 9 6Sending Mail from within Emacs 9 6</p><p>Executing UNIX Commands in Shell Windows 11 8Using Shell Mode 122</p><p>Working with Directories 128Getting into Dired 128Deleting Files with Dired 13 0Copying and Renaming Files with Dired 13 1</p><p>Printing from Emacs 13 3Reading Man Pages from Emacs 13 4Using Your Emacs Work Environment 135</p></li><li><p>Chapter 6 Simple Text Formatting and Specialized Editing 136</p><p>Indenting Text 137Using Tabs 137Using Fill Prefixes 142Indented Text Mode 144Indenting Regions 14 6Some Other Tricks 14 6</p><p>Centering Text 14 8Inserting Page Breaks 15 0Rectangle Editing 15 0Making Simple Drawings 15 7</p><p>Drawing in Picture Mode 15 8Editing in Picture Mode 16 1Using Rectangle Commands in Picture Mode 16 6</p><p>Using Outline Mode 16 8Entering Outline Mode 169Hiding and Showing Text 170Editing While Text is Hidden 173Customizing Outline Mode 174</p><p>Chapter 7 Using Emacs with UNIX Text Formatters 17 5</p><p>Comments 176Finding Headings 17 7</p><p>Marking Up Text for troff and nroff 17 7Paragraph Formatting 17 8Navigation 17 9Macro Pairs 18 0Making nroff Mode Part of Your Startup 182</p><p>Marking Up Text for TeX and LaTeX 18 3Matching Braces 18 3Quotation Marks and Paragraphing 18 6Comments 18 7Processing and Printing Text 18 7Differences for LaTeX Mode 18 8</p><p>Marking Up Text for Scribe 189Marking Environments 19 0Marking Fonts 19 3Tabs, Quotation Marks, and Parentheses 194</p></li><li><p>Chapter 8 Writing Macros 197</p><p>What is a Macro? 197Defining a Macro 198</p><p>Tips for Creating Good Macros 20 1A More Complicated Macro Example 203</p><p>Adding to an Existing Macro 204Naming and Saving Your Macros 205</p><p>Executing a Macro You've Named 206Building More Complicated Macros 207</p><p>Pausing a Macro for Keyboard Input 208Adding a Query to a Macro 210</p><p>Beyond Macros 212</p><p>Chapter 9 Customizing Emacs 214</p><p>Keyboard Customization 215Getting Around Flow-control Problems 218Special Keys 220</p><p>Terminal Support 223Emacs Variables 226Emacs LISP Packages 227Auto-mode Customization 228</p><p>Chapter 10 Emacs For Programmers 230</p><p>Language Modes 23 1Syntax 23 2Formatting 23 3</p><p>C Mode 237Etags 242</p><p>The LISP Modes 244FORTRAN Mode 252Compiling Programs 257</p></li><li><p>Chapter 11 Emacs LISP Programming 259</p><p>Introduction to LISP 260Basic LISP Entities 26 1Defining Functions 263Turning LISP Functions into Emacs Commands 266</p><p>LISP Primitive Functions 269Statement Blocks 270Control Structures 27 1</p><p>Useful Built-in Emacs Functions 274Buffers, Text, and Regions 274Regular Expressions 276Functions that Use Regular Expressions 284'Finding Other Built-in Functions 28 5</p><p>Programming a Major Mode 286Components of a Major Mode 287More LISP Basics : Lists 28 9The Calculator Mode 290LISP Code for the Calculator Mode 292</p><p>Customizing Existing Modes 29 5Building Your Own LISP Library 29 9</p><p>Byte-compiling LISP Files 30 1</p><p>Chapter 12 Emacs for the X Window System 302</p><p>Invoking Emacs under X 30 3Command Line and .X11Startup Options 304.Xdefaults File 30 6</p><p>Mouse Commands 307Creating Mouse Commands 312Creating Popup Menus 314</p><p>Chapter 13 Online Help 31 8</p><p>Completion 31 9` Customizing Completion</p><p>32 1Help Commands 322</p><p>Detail Information 323</p></li><li><p>Apropos Commands 325General Information 327</p><p>Help in Complex Emacs Commands 328</p><p>Appendix A How to Get Emacs 330</p><p>FTP on Internet 33 1Uucp on UUNET 332Magnetic Media 334MS-DOS Versions of Emacs 33 5</p><p>Appendix B Making Emacs Work the Way You Think It Should 336</p><p>Appendix C Emacs Variables 338</p><p>Appendix D Emacs LISP Packages 347</p><p>Appendix E Bugs and Bug Fixes : 353</p><p>Appendix F Public Statements 355</p><p>The GNU General Public License 355General Public License, Version 1 : 356General Public License, Version 2 36 2</p><p>GNU Manifesto 369The League for Programming Freedom 36 9</p><p>Appendix G Give and It Shall Be Given 372</p></li><li><p>Appendix H Quick Reference 37 3</p><p>Index 383</p><p>page 1page 2page 3page 4page 5page 6page 7page 8page 9page 10</p></li></ul>

Recommended

View more >