/
GNU Emacs Reference Card for version  Starting Emacs To enter GNU Emacs  just type its GNU Emacs Reference Card for version  Starting Emacs To enter GNU Emacs  just type its

GNU Emacs Reference Card for version Starting Emacs To enter GNU Emacs just type its - PDF document

debby-jeon
debby-jeon . @debby-jeon
Follow
531 views
Uploaded On 2014-12-18

GNU Emacs Reference Card for version Starting Emacs To enter GNU Emacs just type its - PPT Presentation

Type Ch or F1 and follow the di rections If you are a 64257rsttime user type Ch t for a tutorial remove help window Cx 1 scroll help window CMv apropos show commands matching a string Ch a describe the function a key runs Ch k describe a function C ID: 25774

Type

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "GNU Emacs Reference Card for version St..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

GNUEmacsReferenceCard(forversion27)StartingEmacsToenterGNUEmacs27,justtypeitsname:emacsLeavingEmacssuspendEmacs(oriconifyitunderX)C-zexitEmacspermanentlyC-xC-cFilesreada leintoEmacsC-xC-fsavea lebacktodiskC-xC-ssaveall lesC-xsinsertcontentsofanother leintothisbu erC-xireplacethis lewiththe leyoureallywantC-xC-vwritebu ertoaspeci ed leC-xC-wtoggleread-onlystatusofbu erC-xC-qGettingHelpThehelpsystemissimple.TypeC-h(orF1)andfollowthedi-rections.Ifyouarea rst-timeuser,typeC-htforatutorial.removehelpwindowC-x1scrollhelpwindowC-M-vapropos:showcommandsmatchingastringC-hadescribethefunctionakeyrunsC-hkdescribeafunctionC-hfgetmode-speci cinformationC-hmErrorRecoveryabortpartiallytypedorexecutingcommandC-grecover leslostbyasystemcrashM-xrecover-sessionundoanunwantedchangeC-xu,C-_orC-/restoreabu ertoitsoriginalcontentsM-xrevert-bufferredrawgarbagedscreenC-lIncrementalSearchsearchforwardC-ssearchbackwardC-rregularexpressionsearchC-M-sreverseregularexpressionsearchC-M-rselectprevioussearchstringM-pselectnextlatersearchstringM-nexitincrementalsearchRETundoe ectoflastcharacterDELabortcurrentsearchC-gUseC-sorC-ragaintorepeatthesearchineitherdirection.IfEmacsisstillsearching,C-gcancelsonlythepartnotmatched.c 2020FreeSoftwareFoundation,Inc.Permissionsonback.MotionentitytomoveoverbackwardforwardcharacterC-bC-fwordM-bM-flineC-pC-ngotolinebeginning(orend)C-aC-esentenceM-aM-eparagraphM-{M-}pageC-x[C-x]sexpC-M-bC-M-ffunctionC-M-aC-M-egotobu erbeginning(orend)M-&#x-453;倀M-scrolltonextscreenC-vscrolltopreviousscreenM-vscrollleftC-xscrollrightC-x&#x]TJ/;ó 7;&#x.970; Tf;&#x -17;.8 ;&#x-9.5;d T; [0;scrollcurrentlinetocenter,top,bottomC-lgotolineM-gggotocharM-gcbacktoindentationM-mKillingandDeletingentitytokillbackwardforwardcharacter(delete,notkill)DELC-dwordM-DELM-dline(toendof)M-0C-kC-ksentenceC-xDELM-ksexpM--C-M-kC-M-kkillregionC-wcopyregiontokillringM-wkillthroughnextoccurrenceofcharM-zcharyankbacklastthingkilledC-yreplacelastyankwithpreviouskillM-yMarkingsetmarkhereC-@orC-SPCexchangepointandmarkC-xC-xsetmarkargwordsawayM-@markparagraphM-hmarkpageC-xC-pmarksexpC-M-@markfunctionC-M-hmarkentirebu erC-xhQueryReplaceinteractivelyreplaceatextstringM-%usingregularexpressionsM-xquery-replace-regexpValidresponsesinquery-replacemodearereplacethisone,goontonextSPCoryreplacethisone,don'tmove,skiptonextwithoutreplacingDELornreplaceallremainingmatches!backuptothepreviousmatch^exitquery-replaceRETenterrecursiveedit(C-M-ctoexit)C-rMultipleWindowsWhentwocommandsareshown,thesecondisasimilarcom-mandforaframeinsteadofawindow.deleteallotherwindowsC-x1C-x51splitwindow,aboveandbelowC-x2C-x52deletethiswindowC-x0C-x50splitwindow,sidebysideC-x3scrollotherwindowC-M-vswitchcursortoanotherwindowC-xoC-x5oselectbu erinotherwindowC-x4bC-x5bdisplaybu erinotherwindowC-x4C-oC-x5C-o nd leinotherwindowC-x4fC-x5f nd leread-onlyinotherwindowC-x4rC-x5rrunDiredinotherwindowC-x4dC-x5d ndtaginotherwindowC-x4.C-x5.growwindowtallerC-x^shrinkwindownarrowerC-x{growwindowwiderC-x}Formattingindentcurrentline(mode-dependent)TABindentregion(mode-dependent)C-M-\indentsexp(mode-dependent)C-M-qindentregionrigidlyargcolumnsC-xTABindentforcommentM-;insertnewlineafterpointC-omoverestoflineverticallydownC-M-odeleteblanklinesaroundpointC-xC-ojoinlinewithprevious(witharg,next)M-^deleteallwhitespacearoundpointM-\putexactlyonespaceatpointM-SPC llparagraphM-qset llcolumntoargC-xfsetpre xeachlinestartswithC-x.setfaceM-oCaseChangeuppercasewordM-ulowercasewordM-lcapitalizewordM-cuppercaseregionC-xC-ulowercaseregionC-xC-lTheMinibu erThefollowingkeysarede nedintheminibu er.completeasmuchaspossibleTABcompleteuptoonewordSPCcompleteandexecuteRETshowpossiblecompletions?fetchpreviousminibu erinputM-pfetchlaterminibu erinputordefaultM-nregexpsearchbackwardthroughhistoryM-rregexpsearchforwardthroughhistoryM-sabortcommandC-gTypeC-xESCESCtoeditandrepeatthelastcommandthatusedtheminibu er.TypeF10toactivatemenubaritemsontextterminals. GNUEmacsReferenceCardBu ersselectanotherbu erC-xblistallbu ersC-xC-bkillabu erC-xkTransposingtransposecharactersC-ttransposewordsM-ttransposelinesC-xC-ttransposesexpsC-M-tSpellingCheckcheckspellingofcurrentwordM-$checkspellingofallwordsinregionM-xispell-regioncheckspellingofentirebu erM-xispell-buffertoggleon-the- yspellcheckingM-xflyspell-modeTags ndatag(ade nition)M-. ndnextoccurrenceoftagC-uM-.specifyanewtags leM-xvisit-tags-tableregexpsearchonall lesintagstableM-xtags-searchrunquery-replaceonallthe lesM-xtags-query-replacecontinuelasttagssearchorquery-replaceM-,ShellsexecuteashellcommandM-!executeashellcommandasynchronouslyM-&runashellcommandontheregionM-| lterregionthroughashellcommandC-uM-|startashellinwindow*shell*M-xshellRectanglescopyrectangletoregisterC-xrrkillrectangleC-xrkyankrectangleC-xryopenrectangle,shiftingtextrightC-xroblankoutrectangleC-xrcpre xeachlinewithastringC-xrtAbbrevsaddglobalabbrevC-xagaddmode-localabbrevC-xaladdglobalexpansionforthisabbrevC-xaigaddmode-localexpansionforthisabbrevC-xailexplicitlyexpandabbrevC-xaeexpandpreviousworddynamicallyM-/MiscellaneousnumericargumentC-unumnegativeargumentM--quotedinsertC-qcharRegularExpressionsanysinglecharacterexceptanewline.(dot)zeroormorerepeats*oneormorerepeats+zerooronerepeat?quotespecialcharacters\quoteregularexpressionspecialcharacterc\calternative(\or")\|grouping\(:::\)shygrouping\(:?:::\)explicitnumberedgrouping\(:NUM:::\)sametextasnthgroup\natwordbreak\bnotatwordbreak\Bentitymatchstartmatchendline^$word\&#x-645;䀀\symbol\_&#x-592; \_bu er\`\'classofcharactersmatchthesematchothersexplicitset[:::][^:::]word-syntaxcharacter\w\Wcharacterwithsyntaxc\sc\Sccharacterwithcategoryc\cc\CcInternationalCharacterSetsspecifyprincipallanguageC-xRETlshowallinputmethodsM-xlist-input-methodsenableordisableinputmethodC-\setcodingsystemfornextcommandC-xRETcshowallcodingsystemsM-xlist-coding-systemschoosepreferredcodingsystemM-xprefer-coding-systemInfoentertheInfodocumentationreaderC-hi ndspeci edfunctionorvariableinInfoC-hSMovingwithinanode:scrollforwardSPCscrollreverseDELbeginningofnodebMovingbetweennodes:nextnodenpreviousnodepmoveupuselectmenuitembynamemselectnthmenuitembynumber(1{9)nfollowcrossreference(returnwithl)freturntolastnodeyousawlreturntodirectorynodedgototopnodeofInfo letgotoanynodebynamegOther:runInfotutorialhlookupasubjectintheindicesisearchnodesforregexpsquitInfoqRegisterssaveregioninregisterC-xrsinsertregistercontentsintobu erC-xrisavevalueofpointinregisterC-xrSPCjumptopointsavedinregisterC-xrjKeyboardMacrosstartde ningakeyboardmacroC-x(endkeyboardmacrode nitionC-x)executelast-de nedkeyboardmacroC-xeappendtolastkeyboardmacroC-uC-x(namelastkeyboardmacroM-xname-last-kbd-macroinsertLispde nitioninbu erM-xinsert-kbd-macroCommandsDealingwithEmacsLispevalsexpbeforepointC-xC-eevalcurrentdefunC-M-xevalregionM-xeval-regionreadandevalminibu erM-:loadaLisplibraryfromload-pathM-xload-librarySimpleCustomizationcustomizevariablesandfacesM-xcustomizeMakingglobalkeybindingsinEmacsLisp(example):(global-set-key(kbd"C-cg")'search-forward)(global-set-key(kbd"M-#")'query-replace-regexp)WritingCommands(defuncommand-name(args)"documentation"(interactive"template")body)Anexample:(defunthis-line-to-top-of-window(line)"Repositioncurrentlinetotopofwindow.WithprefixargumentLINE,putpointonLINE."(interactive"P")(recenter(if(nullline)0(prefix-numeric-valueline))))Theinteractivespecsayshowtoreadargumentsinterac-tively.TypeC-hfinteractiveRETformoredetails.Copyrightc 2020FreeSoftwareFoundation,Inc.ForGNUEmacsversion27DesignedbyStephenGildeaReleasedunderthetermsoftheGNUGeneralPublicLicenseversion3orlater.FormoreEmacsdocumentation,andtheTEXsourceforthiscard,seetheEmacsdistribution,orhttps://www.gnu.org/software/emacs