OReilly learning GNU emacs 3rd edition dec 2004 ISBN 0596006489

922 15 0
  • Loading ...
1/922 trang
Tải xuống

Thông tin tài liệu

Ngày đăng: 26/03/2019, 16:07

LearningGNUEmacs,3rdEdition ByDebraCameron,JamesElliott, MarcLoy Publisher :O'Reilly PubDate :December2004 Tableof • ISBN :0-596-00648-9 Contents Pages :534 • Index • Reviews Reader • Reviews ThethirdeditionofLearningGNUEmacsdescribesEmacs21.3 fromthegroundup,includingnewuserinterfacefeaturessuchas anicon-basedtoolbarandaninteractiveinterfacetoEmacs • Errata customization AnewchapterdetailshowtoinstallandrunEmacs • Academic onMacOSX,Windows,andLinux,includingtipsforusingEmacs effectivelyonthoseplatforms Tableof • Contents • Index • Reviews Reader • Reviews • Errata • Academic LearningGNUEmacs,3rdEdition ByDebraCameron,JamesElliott, MarcLoy Publisher :O'Reilly PubDate :December2004 ISBN :0-596-00648-9 Pages :534 Copyright Preface WhyReadThisBook? WhichEmacsIsWhich? What'sNewinThisEdition? AnApproachtoLearningEmacs TheMetaKey HowtoContactUs GNUEmacsandtheFreeSoftwareFoundation WhatWeHaven'tIncluded ConventionsUsedinThisBook Acknowledgments Chapter1 EmacsBasics Section1.1 IntroducingEmacs! Section1.2 UnderstandingFilesandBuffers Section1.3 AWordAboutModes Section1.5 AbouttheEmacsDisplay Section1.4 StartingEmacs Section1.6 EmacsCommands Section1.7 OpeningaFile Section1.9 LeavingEmacs Section1.8 SavingFiles Section1.10 GettingHelp Section1.11 Summary Chapter2 Editing Section2.1 MovingtheCursor Section2.2 DeletingText Section2.4 EmacsandtheClipboard Section2.6 CancelingCommandsandUndoingChanges Section2.3 MarkingTexttoDelete,Move,orCopy Section2.5 EditingTricksandShortcuts Section2.7 MakingEmacsWorktheWayYouWant Chapter3 SearchandReplace Section3.1 DifferentKindsofSearches Section3.2 SearchandReplace Section3.3 CheckingSpellingUsingIspell Section3.4 WordAbbreviations Chapter4 UsingBuffers,Windows,andFrames Section4.1 UnderstandingBuffers,Windows,andFrames Section4.2 WorkingwithMultipleBuffers Section4.3 WorkingwithWindows Section4.5 MoreAboutBuffers Section4.4 WorkingwithFrames Section4.6 MoreAboutWindows Section4.7 HoldingYourPlacewithBookmarks Chapter5 EmacsasaWorkEnvironment Section5.1 ExecutingCommandsinShellBuffers Section5.2 UsingDired,theDirectoryEditor Section5.4 ReadingManpagesinEmacs Section5.3 PrintingfromEmacs Section5.5 UsingTimeManagementTools Chapter6 WritingMacros Section6.1 DefiningaMacro Section6.2 TipsforCreatingGoodMacros Section6.3 AMoreComplicatedMacroExample Section6.5 TheMacroRing Section6.4 EditingaMacro Section6.6 BindingYourMacrotoaKey Section6.7 Naming,Saving,andExecutingYourMacros Section6.8 BuildingMoreComplicatedMacros Section6.9 ExecutingMacrosonaRegion Section6.10 BeyondMacros Chapter7 SimpleTextFormattingandSpecializedEditing Section7.1 UsingTabs Section7.2 IndentingText Section7.4 UsingOutlineMode Section7.3 CenteringText Section7.5 RectangleEditing Section7.6 MakingSimpleDrawings Chapter8 MarkupLanguageSupport Section8.1 Comments Section8.2 Font-LockMode Section8.4 WritingXML Section8.3 WritingHTML Section8.5 MarkingupTextforTEXandLATEX Chapter9 ComputerLanguageSupport Section9.1 EmacsasanIDE Section9.2 WritingCode Section9.3 CandC++Support Section9.5 TheJavaDevelopmentEnvironmentforEmacs(JDEE) Section9.7 SQLSupport Section9.4 JavaSupport Section9.6 PerlSupport Section9.8 TheLispModes Chapter10 CustomizingEmacs Section10.1 UsingCustom Section10.2 Modifyingthe emacsFileDirectly Section10.3 ModifyingFontsandColors Section10.5 SettingEmacsVariables Section10.7 StartingModesviaAuto-ModeCustomization Section10.4 CustomizingYourKeyBindings Section10.6 FindingEmacsLispPackages Section10.8 MakingEmacsWorktheWayYouThinkItShould Chapter11 EmacsLispProgramming Section11.1 IntroductiontoLisp Section11.2 LispPrimitiveFunctions Section11.3 UsefulBuilt-inEmacsFunctions Section11.4 BuildinganAutomaticTemplateSystem Section11.5 ProgrammingaMajorMode Section11.6 CustomizingExistingModes Section11.7 BuildingYourOwnLispLibrary Chapter12 VersionControl Section12.1 TheUsesofVersionControl Section12.2 VersionControlConcepts Section12.4 EditingCommentBuffers Section12.6 VCModeIndicators Section12.8 IndividualVCCommands Section12.10 ExtendingVC Section12.12 UsingVCEffectively Section12.3 HowVCHelpswithBasicOperations Section12.5 VCCommandSummary Section12.7 WhichVersionControlSystem? Section12.9 CustomizingVC Section12.11 WhatVCIsNot Section12.13 ComparingwithEdiff Chapter13 Platform-SpecificConsiderations Section13.1 EmacsandUnix Section13.2 EmacsandMacOSX Section13.3 EmacsandWindows Chapter14 TheHelpSystem Section14.1 UsingtheTutorial Section14.2 HelpCommands Section14.4 NavigatingEmacsDocumentation Section14.3 HelpwithComplexEmacsCommands Section14.5 Completion AppendixA EmacsVariables AppendixB EmacsLispPackages AppendixC BugsandBugFixes AppendixD OnlineResources AppendixE QuickReference Colophon Index Copyright©2005O'ReillyMedia,Inc Allrightsreserved PrintedintheUnitedStatesofAmerica PublishedbyO'ReillyMedia,Inc.,1005GravensteinHighway North,Sebastopol,CA95472 O'Reillybooksmaybepurchasedforeducational,business,or salespromotionaluse Onlineeditionsarealsoavailablefor mosttitles(http://safari.oreilly.com) Formoreinformation, contactourcorporate/institutionalsalesdepartment:(800) 998-9938orcorporate@oreilly.com NutshellHandbook,theNutshellHandbooklogo,andthe O'ReillylogoareregisteredtrademarksofO'ReillyMedia,Inc LearningGNUEmacs,theimageofthegnu,andrelatedtrade dressaretrademarksofO'ReillyMedia,Inc Manyofthedesignationsusedbymanufacturersandsellersto distinguishtheirproductsareclaimedastrademarks Where thosedesignationsappearinthisbook,andO'ReillyMedia,Inc wasawareofatrademarkclaim,thedesignationshavebeen printedincapsorinitialcaps Whileeveryprecautionhasbeentakeninthepreparationofthis book,thepublisherandauthorsassumenoresponsibilityfor errorsoromissions,orfordamagesresultingfromtheuseof theinformationcontainedherein Preface Emacsisthemostpowerfultexteditoravailabletoday Unlike mostothereditors(inparticular,unlikethestandardUnix editor,vi),Emacsisacompleteworkingenvironment No matterwhatyoudo,youcanstartEmacsinthemorning,work alldayandallnight,andneverleaveit:youcanuseittoedit, rename,delete,andorganizefiles;tocompileprograms;torun shellcommands;andsoon BeforewindowingsystemslikeX andMicrosoftWindowsbecamepopular,Emacsoftenservedas acompletewindowingsystemofitsown Allyouneededwasa terminal,andyoucouldlivewithinEmacsforever Emacsisalso infinitelyflexible;youcanwriteyourowncommands,change thekeysthatareassociatedwithcommands,and(ifyouare willingtotakethetime)dojustaboutanythingyouwant WhyReadThisBook? Becauseitdoessomuch,Emacshasareputationforbeing extremelycomplicated Wedon'tthinkthat'swarranted;we teachyouEmacsfromthegroundup,coveringfirstthebasics andthensomeofthemoreadvancedfeatures Inthisbook,wehavetriedtoreachasbroadanaudienceas possible:fromcasualuserstoprofessionalwritersandweb authorstoprogrammerstosystemadministrators Nomatter whatyoudowithEmacs,youwillfindit'seasytolearn;after oneortwosessions,you'llknowthebasicsofeditinganyfile Afteryoulearnthebasics,youcangoontolearnaboutmore advancedtopicsthatprovidetherealbenefitsofusingEmacs Theseinclude: Usingmultiplewindowsandbufferssoyoucanworkon severalfilesatonce Customizingkeyboardcommands TailoringEmacstofityourworkstyle MakingEmacsyourworkenvironmentwhereyoucandoall youreverydaytasks,suchasorganizingfiles,compiling programs,andissuingshellcommands Creatingmacrostostreamlinerepetitivetasks UsingEmacstosupportprogramminginmanylanguages (includingC,C++,Lisp,Java,andPerl) Formattingfileswithvariousmarkuplanguages,suchas HTMLandXML Usingwordabbreviationstoavoidspellingoutlongphrases ortocorrectcommonmisspellings Ofcourse,manyofthetopicsmaynotapplytoyou;some topicsmaybeappropriateforasecondreadingbutnotforthe first Towardtheendofthepreface,we'llsketchseveral differentwaystoapproachthebook,dependingonyour interestsandexperience WhichEmacsIsWhich? NumerousversionsofEmacsareavailable,offeringawide rangeoffeatures,buttwoareinwidespreadusetoday:GNU EmacsandXEmacs (AnexhaustivelistofEmacs implementationscanbefoundat http://www.finseth.com/~fin/emacs.html.)XEmacswas originallytailoredforGUIusageandhasafairlywideuserbase, butlackssomeofthefeaturesofGNUEmacs.[1] [1]QuiteafewissuescomeupindiscussionsofGNUEmacsversusXEmacs,withcharacter encodingschemes,userinterfacedifferences,andcopyrightissuesamongthem We'renot interestedintakingsidesinthebattlesbetweentheseemacsen ThisbookcoversGNUEmacs Sinceitsappearance,GNUEmacs hasbecomethemostpopular,powerful,andflexibleEmacs, andthere'snoreasontobelievethatthissituationwillchange IfyouknowGNUEmacs,youwillbeabletoadapttoanyother Emacsimplementationwithnotrouble;it'snotsoeasytogoin theotherdirection Thisbook,however,isn'tlimitedtoGNUEmacsusers Because ofthesimilaritiesbetweendifferentEmacsimplementations, thisbookshouldhelpyougetstartedwithanyEmacseditor Thebasickeyboardcommandschangelittlefromoneeditorto anotheryou'llfindthatC-n(forCtrl-n)almostalwaysmeans "movetothenextline."Emacseditorstendtodifferinthe moreadvancedcommandsandfeatures,butifyouareusing thesemoreadvancedfacilitiesandyouaren'tusingGNUEmacs, youshouldconsidermakingtheswitch shellbuffer historycommands multiple outputgroups starting shellcommands Dired historycommands outputtobuffer shellmode2nd commands2nd securityand troubleshooting Show/Hide,Optionsmenu shrinkingwindows side-by-sidewindows simplesearchandreplace simplesearches2nd commands sizing frames windows2nd limits sorting,Diredand sourcecode,Emacs,MacOSXand spaces,changingto/fromtabs specialcharacters conventions searchandreplace specialkeys,customization spelling Flyspell Ispell buffer completingwords singleword splittingwindows vertically SQL(StructuredQueryLanguage) editingmode interactivemode sendcommands SQLmode stacks,Lispand Stallman,Richard startingEmacs Statbutton,Custominterface statementblocks,Lispfunctions statements, emacs status,buffers stoppingcommands strings syntaxand Lisp variables switchingbetweenframes switchingbetweenwindows switchingbuffers symbols bufferlist HTMLmode majormodes syntax(Lisp) variables syntax atoms(Lisp) functions(Lisp) highlighting[Seefont-lockmode] programminglanguagemodes [SYMBOL][A][B][C][D][E][F][G][H][I][J] [K][L][M][N][O][P][Q][R][S][T][U][V] [W][X][Y] tabcommands tabs colonsattabstops convertingtospaces default literaltabs picturemode spaces tabstops,changing width TEI(TextEncodingInitiative)Emacs Template.elfile templates automatictemplatesystem FccManager.javafile file-template-javafile HTMLhelpermode TeX TeXmodecommands text built-infunctions centering clipboard placingtextin retrievingfrom color-enriched,saving copying2nd deleting recovering regions editinghidden enriched,saving fillprefixes font-enriched,saving hidden,editing hiding/showing indents paragraphfirstline paragraphs2nd inserting,bookmarksand lines,deleting margins marking paragraphs regions moving onlineresources outlinemode overwriting pasting regions deleting marking selecting mouse tabs uppercase textediting,variables textfillingcommands textmode centeringlines default picturemodecomparison wordabbreviations wordwrapand TextPropertiesmenu,fontchanges text-basedmenus,optionselection tilde(~),buffersand toolbar customizing hiding/showing2nd icons troubleshooting searchicon transpositioncommands transpositions troubleshooting menuaccess minibuffer modeline paragraphformatting PgUp searchandreplace shellmode toolbaricons tutorialforhelpsystem typos flyspellmodeand transpositions wordabbreviationmode [SYMBOL][A][B][C][D][E][F][G][H][I][J] [K][L][M][N][O][P][Q][R][S][T][U][V] [W][X][Y] uncompressingfiles,Dired undoing backupfilesand changes,commandsfor edits Unix Emacs downloading location uncompressing unpacking makeutility uppercasetext [SYMBOL][A][B][C][D][E][F][G][H][I][J] [K][L][M][N][O][P][Q][R][S][T][U][V] [W][X][Y] variables auto-save backups case-fold-search case-replace characters completion display Lisp location,Custominterface majormodes miscellaneous modes programming searchandreplace setting strings symbols textediting versioning VCmode changehistories ChangeLogfiles ClearCaseand commands2nd differencereports groups subtrees commentbuffer customization extensions fileregistration indicators snapshots versioncontrol[SeealsoVCmode] changecomments ChangeLogfiles changestofiles checked-outfiles Ediffand fileregistration files,registering headers lockedfiles onlineresources renamingfiles revisionnumber revisions,retrieving snapshots systemselection uses workfiles version,Emacs versioning,commands verticalwindows Viewmode viewingfiles,Dired [SYMBOL][A][B][C][D][E][F][G][H][I][J] [K][L][M][N][O][P][Q][R][S][T][U][V] [W][X][Y] websites whitespace,syntaxand windows bufferdisplay bufferlist,moving buffersand commands2nd cursors deleting enlarging files,comparingbetween framescomparison horizontal movingbetween multiplebuffersinseparatewindows navigating shrinking side-by-side sizing limits splitting vertically startupand vertical WindowsandEmacs commandlinestartup CUAmode installation2nd Ispellinstallation wordabbreviationmode Custominterfaceand Flyspell wordabbreviations,Flyspell2nd wordsearches2nd wordwrap words syntaxand workfiles,versioncontrol workspace write-filecommand writing inHTML XHTML,nxmlmodeand XML SGMLmode writingmacros,tipsfor WYSIWYG(whatyouseeiswhatyouget)tools [SYMBOL][A][B][C][D][E][F][G][H][I][J] [K][L][M][N][O][P][Q][R][S][T][U][V] [W][X][Y] XWindowSystem minibuffer,missing modeline,missing window,sizeproblems XHTML HTMLmodeand writing,nxmlmode XML(ExtensibleMarkupLanguage) DTDand psgmlmode TEIEmacs writing SGMLmode [SYMBOL][A][B][C][D][E][F][G][H][I][J] [K][L][M][N][O][P][Q][R][S][T][U][V] [W][X][Y] yankingtext,commandsfor ... Reader • Reviews • Errata • Academic Learning GNU Emacs, 3rd Edition ByDebraCameron,JamesElliott, MarcLoy Publisher :O'Reilly PubDate :December 2004 ISBN :0-596-00648-9 Pages :534 Copyright... Thisbookcovers GNU Emacs Sinceitsappearance, GNU Emacs hasbecomethemostpopular,powerful,andflexible Emacs, andthere'snoreasontobelievethatthissituationwillchange Ifyouknow GNU Emacs, youwillbeabletoadapttoanyother... thesemoreadvancedfacilitiesandyouaren'tusing GNU Emacs, youshouldconsidermakingtheswitch What'sNewinThis Edition? Thisthird edition covers GNU Emacs 21,specifically21.3and evenmorespecifically21.3.5.[2]Thisnew edition hasbeen
- Xem thêm -

Xem thêm: OReilly learning GNU emacs 3rd edition dec 2004 ISBN 0596006489 , OReilly learning GNU emacs 3rd edition dec 2004 ISBN 0596006489 , Chapter 4. Using Buffers, Windows, and Frames, Chapter 5. Emacs as a Work Environment, Chapter 7. Simple Text Formatting and Specialized Editing, Appendix C. Bugs and Bug Fixes

Mục lục

Xem thêm

Gợi ý tài liệu liên quan cho bạn