home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / FREEMACS / EMACS16A.ZIP / TWOPAGE.DOC < prev   
Text File  |  1990-03-07  |  5KB  |  113 lines

  1.                        CHALLENGE: EMACS IN 2 PAGES
  2.  
  3. SOME NECESSARY NOTATION.
  4. Any ordinary character goes into the buffer (no insert command needed).
  5. In commands, use carriage return, shown as <cr>, after a string unless the
  6. chart shows $, meaning to use ESCAPE.  ESCAPE is called Altmode in EMACS.
  7. C-       A control character.  C-F means "control F".  C-_ means "control
  8.            underscore" (use C-? on a VT100 to get C-_)
  9. M-       A two-character command sequence where the first character is
  10.            Altmode.  M-F means "ESCAPE then F"
  11. M-X string    A command designated "by hand".  M-X Revert File means:
  12.            Altmode then "x" then type "revert file" then <cr>
  13. point    EMACS term for cursor position in current buffer
  14.  
  15. GETTING OUT.
  16. C-X C-S  Write the current buffer into a new version of the current file
  17.            name
  18. C-X C-W  Write the current buffer into a file with a different name
  19. C-X C-C  Finish by exiting to the exec
  20. C-Z      Push to a lower exec fork (the same one each time)
  21.  
  22. BUFFER OPERATIONS.
  23. C-X C-F  Get a file into a buffer for editing
  24. C-X B    Select a different buffer (prompts; default is the last one)
  25. C-X C-B  Display the list of available buffers
  26. C-X K    Kill a buffer (prompts for which one; default is current one)
  27. M-<      Move to the top of the current buffer
  28. M->      Move to the end of the current buffer
  29.  
  30. HELP AND HELPER FUNCTIONS.
  31. C-G      Abort anything at any time (it beeps, sometimes you need 2)
  32. F1 A string  Show every command containing string (try F1 A Paragr)
  33. F1 C x   What does this key do? (try F1 C C-K as an example)
  34. F1 D string  Describe a command (try F1 D Query Rep)
  35. C-Y      Yank back the last thing killed (kill and delete are different)
  36. M-n      Provide a numeric argument of n for the command that follows
  37. C-Q      Inserts a control character in the buffer (e.g. C-Q C-L)
  38. C-X D    Directory editing subsystem (use ? to see its documentation)
  39.  
  40. CHARACTER OPERATIONS.
  41. C-B      Move left (Back)
  42. C-F      Move right (Forward)
  43. C-P      Move up (Previous)
  44. C-N      Move down (Next)
  45. BACKSPACE Delete left
  46. C-D      Delete right
  47. C-T      Transpose previous 2 characters (ht -> th)
  48.  
  49. WORD OPERATIONS.
  50. M-B      Move left (Back)
  51. M-F      Move right (Forward)
  52. M-BACKSPACE Kill left (C-Y yanks it back at point)
  53. M-D      Kill right (C-Y yanks it back at point)
  54. M-T      Transpose 2 words around point (if only -> only if)
  55. M-C      Capitalize word
  56.                                     2
  57.  
  58. M-U      Uppercase word
  59.  
  60. LINE OPERATIONS.
  61. C-A      Move to the beginning
  62. C-E      Move to the end
  63. C-O      Open up a line for typing
  64. C-X C-O  Close up any blank lines around point
  65. M-0 C-K  Kill from beginning to point (C-Y yanks it back at point)
  66. C-K      Kill from point to end (C-Y yanks it back at point)
  67.  
  68. SENTENCE OPERATIONS.
  69. M-A      Move to the beginning
  70. M-E      Move to the end
  71. C-X BACKSPACE Kill from beginning to point (C-Y yanks it back at point)
  72. M-K      Kill from point to end (C-Y yanks it back at point)
  73.  
  74. PARAGRAPH OPERATIONS.
  75. M-[      Move to beginning
  76. M-]      Move to end
  77. M-Q      Fill the current paragraph
  78. M-n C-X F     Set the fill column to n (e.g. M-60 C-X F)
  79.  
  80. SCREEN OPERATIONS.
  81. C-V      Show next screen
  82. M-V      Show previous screen
  83. C-L      Redisplay screen
  84. M-0 C-L  Move the line where point is to line 0 (top) of the screen
  85.  
  86. PAGE OPERATIONS.
  87. C-X [    Move to beginning (last ^L)
  88. C-X ]    Move to end (next ^L)
  89.  
  90. SEARCH AND REPLACE.
  91. (note: EMACS has other search commands, all of which I prefer to
  92. incremental search, but we are just describing defaults here)
  93. C-S      "Incremental" search searches while you enter string (C-S str$)
  94. C-R      "Incremental" backward search (C-R str$)
  95. M-X Replace String  Replace one string with another (M-X Repl$one
  96.            string$another)
  97. M-X Query Replace  Replace one string with another, wants SPACE meaning
  98.            "do it" or RUBOUT to skip (M-X Qu$one string$another)
  99.  
  100. REGION OPERATIONS.  Region is area of buffer between point and mark (or
  101. mark and point).  Some commands set the mark, so check it before using.
  102. C-@      Set the mark (for use with REGION commands)
  103. C-X C-X  Interchange point and mark (i.e. go to the other end of the
  104.            current region)
  105. C-W      Kill region (C-Y yanks it back at point)
  106.  
  107. WINDOW OPERATIONS.
  108. C-X 2    Split the screen in two windows (same buffer shown in each)
  109. C-X 1    Resume single window (using buffer from top window)
  110. C-X O    Move cursor to other window (all the usual commands apply)
  111. M-C-V    Display the next screen in the other window
  112.  
  113.