Mercurial > emacs
annotate etc/TUTORIAL @ 12493:f8ada5acbaec
(redisplay_window): Fix typos in clip_changed change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 07 Jul 1995 13:35:19 +0000 |
parents | 5d0ad882565c |
children | 5cb83d6bbce1 |
rev | line source |
---|---|
13 | 1 Copyright (c) 1985 Free Software Foundation, Inc; See end for conditions. |
2 | |
3 You are looking at the Emacs tutorial. | |
4 | |
5 Emacs commands generally involve the CONTROL key (sometimes labelled | |
6 CTRL or CTL) or the META key (sometimes labelled EDIT). Rather than | |
7 write out META or CONTROL each time we want you to prefix a character, | |
8 we'll use the following abbreviations: | |
9 | |
10 C-<chr> means hold the CONTROL key while typing the character <chr> | |
11 Thus, C-f would be: hold the CONTROL key and type f. | |
12 M-<chr> means hold the META or EDIT key down while typing <chr>. | |
13 If there is no META or EDIT key, type <ESC>, release it, | |
14 then type the character <chr>. "<ESC>" stands for the | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
15 key labelled "ESC". |
13 | 16 |
17 Important note: to end the Emacs session, type C-x C-c. (Two characters.) | |
18 The characters ">>" at the left margin indicate directions for you to | |
19 try using a command. For instance: | |
20 <<Blank lines inserted here by startup of help-with-tutorial>> | |
21 >> Now type C-v (View next screen) to move to the next screen. | |
22 (go ahead, do it by depressing the control key and v together). | |
23 From now on, you'll be expected to do this whenever you finish | |
24 reading the screen. | |
25 | |
26 Note that there is an overlap when going from screen to screen; this | |
27 provides some continuity when moving through the file. | |
28 | |
29 The first thing that you need to know is how to move around from | |
30 place to place in the file. You already know how to move forward a | |
31 screen, with C-v. To move backwards a screen, type M-v (depress the | |
32 META key and type v, or type <ESC>v if you don't have a META or EDIT | |
33 key). | |
34 | |
35 >> Try typing M-v and then C-v to move back and forth a few times. | |
36 | |
37 | |
1375 | 38 * SUMMARY |
39 --------- | |
13 | 40 |
41 The following commands are useful for viewing screenfuls: | |
42 | |
43 C-v Move forward one screenful | |
44 M-v Move backward one screenful | |
45 C-l Clear screen and redisplay everything | |
46 putting the text near the cursor at the center. | |
4351
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
47 (That's control-L, not control-1.) |
13 | 48 |
49 >> Find the cursor and remember what text is near it. | |
50 Then type a C-l. | |
51 Find the cursor again and see what text is near it now. | |
52 | |
53 | |
1375 | 54 * BASIC CURSOR CONTROL |
55 ---------------------- | |
13 | 56 |
57 Getting from screenful to screenful is useful, but how do you | |
58 reposition yourself within a given screen to a specific place? | |
59 There are several ways you can do this. One way (not the best, but | |
60 the most basic) is to use the commands previous, backward, forward | |
61 and next. As you can imagine these commands (which are given to | |
62 Emacs as C-p, C-b, C-f, and C-n respectively) move the cursor from | |
63 where it currently is to a new place in the given direction. Here, | |
64 in a more graphical form are the commands: | |
65 | |
66 Previous line, C-p | |
67 : | |
68 : | |
69 Backward, C-b .... Current cursor position .... Forward, C-f | |
70 : | |
71 : | |
72 Next line, C-n | |
73 | |
74 >> Move the cursor to the line in the middle of that diagram | |
75 and type C-l to see the whole diagram centered in the screen. | |
76 | |
77 You'll probably find it easy to think of these by letter. P for | |
78 previous, N for next, B for backward and F for forward. These are | |
79 the basic cursor positioning commands and you'll be using them ALL | |
80 the time so it would be of great benefit if you learn them now. | |
81 | |
82 >> Do a few C-n's to bring the cursor down to this line. | |
83 | |
84 >> Move into the line with C-f's and then up with C-p's. | |
85 See what C-p does when the cursor is in the middle of the line. | |
86 | |
87 Lines are separated by Newline characters. For most applications | |
88 there should normally be a Newline character at the end of the text, | |
89 as well, but it is up to you to make sure of this. A file can | |
90 validly exist without a Newline at the end. | |
91 | |
92 >> Try to C-b at the beginning of a line. Do a few more C-b's. | |
93 Then do C-f's back to the end of the line and beyond. | |
94 | |
95 When you go off the top or bottom of the screen, the text beyond | |
96 the edge is shifted onto the screen so that your instructions can | |
97 be carried out while keeping the cursor on the screen. | |
98 | |
99 >> Try to move the cursor off the bottom of the screen with C-n and | |
100 see what happens. | |
101 | |
102 If moving by characters is too slow, you can move by words. M-f | |
103 (Meta-f) moves forward a word and M-b moves back a word. | |
104 | |
105 >> Type a few M-f's and M-b's. Intersperse them with C-f's and C-b's. | |
106 | |
107 Notice the parallel between C-f and C-b on the one hand, and M-f and | |
108 M-b on the other hand. Very often Meta characters are used for | |
109 operations related to English text whereas Control characters operate | |
110 on the basic textual units that are independent of what you are | |
111 editing (characters, lines, etc). There is a similar parallel between | |
112 lines and sentences: C-a and C-e move to the beginning or end of a | |
113 line, and M-a and M-e move to the beginning or end of a sentence. | |
114 | |
115 >> Try a couple of C-a's, and then a couple of C-e's. | |
116 Try a couple of M-a's, and then a couple of M-e's. | |
117 | |
118 See how repeated C-a's do nothing, but repeated M-a's keep moving | |
119 farther. Do you think that this is right? | |
120 | |
121 Two other simple cursor motion commands are M-< (Meta Less-than), | |
122 which moves to the beginning of the file, and M-> (Meta Greater-than), | |
123 which moves to the end of the file. You probably don't need to try | |
124 them, since finding this spot again will be boring. On most terminals | |
125 the "<" is above the comma and you must use the shift key to type it. | |
126 On these terminals you must use the shift key to type M-< also; | |
127 without the shift key, you would be typing M-comma. | |
128 | |
129 The location of the cursor in the text is also called "point". To | |
130 paraphrase, the cursor shows on the screen where point is located in | |
131 the text. | |
132 | |
133 Here is a summary of simple moving operations including the word and | |
134 sentence moving commands: | |
135 | |
136 C-f Move forward a character | |
137 C-b Move backward a character | |
138 | |
139 M-f Move forward a word | |
140 M-b Move backward a word | |
141 | |
142 C-n Move to next line | |
143 C-p Move to previous line | |
144 | |
145 C-a Move to beginning of line | |
146 C-e Move to end of line | |
147 | |
148 M-a Move back to beginning of sentence | |
149 M-e Move forward to end of sentence | |
150 | |
151 M-< Go to beginning of file | |
152 M-> Go to end of file | |
153 | |
154 >> Try all of these commands now a few times for practice. | |
155 Since the last two will take you away from this screen, | |
156 you can come back here with M-v's and C-v's. These are | |
157 the most often used commands. | |
158 | |
159 Like all other commands in Emacs, these commands can be given | |
160 arguments which cause them to be executed repeatedly. The way you | |
161 give a command a repeat count is by typing C-u and then the digits | |
162 before you type the command. If you have a META or EDIT key, you can | |
163 omit the C-u if you hold down the META or EDIT key while you type the | |
164 digits. This is easier, but we recommend the C-u method because it | |
165 works on any terminal. | |
166 | |
167 For instance, C-u 8 C-f moves forward eight characters. | |
168 | |
169 >> Try giving a suitable argument to C-n or C-p to come as close | |
170 as you can to this line in one jump. | |
171 | |
172 The only apparent exception to this is the screen moving commands, | |
173 C-v and M-v. When given an argument, they scroll the screen up or | |
174 down by that many lines, rather than screenfuls. This proves to be | |
175 much more useful. | |
176 | |
177 >> Try typing C-u 8 C-v now. | |
178 | |
179 Did it scroll the screen up by 8 lines? If you would like to | |
180 scroll it down you can give an argument to M-v. | |
181 | |
2863 | 182 If you are using X Windows, there is probably a rectangular area |
183 called a scroll bar at the right hand side of the Emacs window. You | |
184 can scroll the text by clicking the mouse in the scroll bar. | |
185 | |
186 >> Try pressing the middle button at the top of the highlighted area | |
187 within the scroll bar, then moving the mouse while holding that button | |
188 down. | |
189 | |
190 >> Move the mouse to a point in the scroll bar about three lines from | |
191 the top, and click the left button a couple of times. Then try the | |
192 right button a couple of times. | |
193 | |
13 | 194 |
1375 | 195 * WHEN EMACS IS HUNG |
196 -------------------- | |
13 | 197 |
198 If Emacs gets into an infinite (or simply very long) computation which | |
199 you don't want to finish, you can stop it safely by typing C-g. | |
200 You can also use C-g to discard a numeric argument or the beginning of | |
201 a command that you don't want to finish. | |
202 | |
203 >> Type C-u 100 to make a numeric arg of 100, then type C-g. | |
204 Now type C-f. How many characters does it move? | |
205 If you have typed an <ESC> by mistake, you can get rid of it | |
206 with a C-g. | |
207 | |
208 If you type <ESC> <ESC>, you get a new window appearing on | |
209 the screen, telling you that M-ESC is a "disabled command" | |
210 and asking whether you really want to execute it. The command | |
211 M-ESC is marked as disabled because you probably don't want to | |
212 use it until you know more about Emacs, and we expect it would | |
213 confuse you if it were allowed to go ahead and run. If you really | |
214 want to try the M-ESC command, you could type a Space in answer | |
215 to the question and M-ESC would go ahead. Normally, if you do | |
216 not want to execute M-ESC, you would type "n" to answer the question. | |
217 | |
218 >> Type <ESC> <ESC>, then type n. | |
219 | |
220 | |
1375 | 221 * WINDOWS |
222 --------- | |
13 | 223 |
224 Emacs can have several windows, each displaying its own text. | |
225 At this stage it is better not to go into the techniques of | |
226 using multiple windows. But you do need to know how to get | |
227 rid of extra windows that may appear to display help or | |
228 output from certain commands. It is simple: | |
229 | |
230 C-x 1 One window (i.e., kill all other windows). | |
231 | |
232 That is Control-x followed by the digit 1. | |
233 C-x 1 makes the window which the cursor is in become | |
234 the full screen, by getting rid of any other windows. | |
235 | |
236 >> Move the cursor to this line and type C-u 0 C-l. | |
237 >> Type Control-h k Control-f. | |
238 See how this window shrinks, while a new one appears | |
239 to display documentation on the Control-f command. | |
240 | |
241 >> Type C-x 1 and see the documentation listing window disappear. | |
242 | |
243 | |
1375 | 244 * INSERTING AND DELETING |
245 ------------------------ | |
13 | 246 |
247 If you want to insert text, just type it. Characters which you can | |
248 see, such as A, 7, *, etc. are taken by Emacs as text and inserted | |
249 immediately. Type <Return> (the carriage-return key) to insert a | |
250 Newline character. | |
251 | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
252 You can delete the last character you typed by typing <Delete>. |
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
253 <Delete> is a key on the keyboard, which may be labeled "Del". In |
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
254 some cases, the "Backspace" key serves as <Delete>, but not always! |
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
255 |
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
256 More generally, <Delete> deletes the character immediately before the |
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
257 current cursor position. |
13 | 258 |
259 >> Do this now, type a few characters and then delete them | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
260 by typing <Delete> a few times. Don't worry about this file |
13 | 261 being changed; you won't affect the master tutorial. This is just |
262 a copy of it. | |
263 | |
264 >> Now start typing text until you reach the right margin, and keep | |
265 typing. When a line of text gets too big for one line on the | |
266 screen, the line of text is "continued" onto a second screen line. | |
267 The backslash at the right margin indicates a line which has | |
268 been continued. | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
269 >> Use <Delete>s to delete the text until the line fits on one screen |
13 | 270 line again. The continuation line goes away. |
271 | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
272 >> Move the cursor to the beginning of a line and type <Delete>. This |
13 | 273 deletes the newline before the line and merges the line onto |
274 the previous line. The resulting line may be too long to fit, in | |
275 which case it has a continuation line. | |
276 >> Type <Return> to reinsert the Newline you deleted. | |
277 | |
278 Remember that most Emacs commands can be given a repeat count; | |
279 this includes characters which insert themselves. | |
280 | |
281 >> Try that now -- type C-u 8 * and see what happens. | |
282 | |
283 You've now learned the most basic way of typing something in | |
284 Emacs and correcting errors. You can delete by words or lines | |
285 as well. Here is a summary of the delete operations: | |
286 | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
287 <Delete> delete the character just before the cursor |
13 | 288 C-d delete the next character after the cursor |
289 | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
290 M-<Delete> kill the word immediately before the cursor |
13 | 291 M-d kill the next word after the cursor |
292 | |
293 C-k kill from the cursor position to end of line | |
294 M-k kill to the end of the current sentence | |
295 | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
296 Notice that <Delete> and C-d vs M-<Delete> and M-d extend the parallel |
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
297 started by C-f and M-f (well, <Delete> isn't really a control |
13 | 298 character, but let's not worry about that). C-k and M-k are like C-e |
299 and M-e, sort of, in that lines are opposite sentences. | |
300 | |
301 Now suppose you kill something, and then you decide that you want to | |
302 get it back? Well, whenever you kill something bigger than a | |
303 character, Emacs saves it for you. To yank it back, use C-y. You | |
304 can kill text in one place, move elsewhere, and then do C-y; this is | |
305 a good way to move text around. Note that the difference | |
306 between "Killing" and "Deleting" something is that "Killed" things | |
307 can be yanked back, and "Deleted" things cannot. Generally, the | |
308 commands that can destroy a lot of text save it, while the ones that | |
309 attack only one character, or nothing but blank lines and spaces, do | |
310 not save. | |
311 | |
34 | 312 For instance, type C-n a couple times to position the cursor |
13 | 313 at some line on this screen. |
314 | |
315 >> Do this now, move the cursor and kill that line with C-k. | |
316 | |
317 Note that a single C-k kills the contents of the line, and a second | |
318 C-k kills the line itself, and make all the other lines move up. If | |
319 you give C-k a repeat count, it kills that many lines AND their | |
320 contents. | |
321 | |
322 The text that has just disappeared is saved so that you can | |
323 retrieve it. To retrieve the last killed text and put it where | |
324 the cursor currently is, type C-y. | |
325 | |
326 >> Try it; type C-y to yank the text back. | |
327 | |
328 Think of C-y as if you were yanking something back that someone | |
329 took away from you. Notice that if you do several C-k's in a row | |
330 the text that is killed is all saved together so that one C-y will | |
331 yank all of the lines. | |
332 | |
333 >> Do this now, type C-k several times. | |
334 | |
335 Now to retrieve that killed text: | |
336 | |
337 >> Type C-y. Then move the cursor down a few lines and type C-y | |
338 again. You now see how to copy some text. | |
339 | |
340 What do you do if you have some text you want to yank back, and then | |
341 you kill something else? C-y would yank the more recent kill. But | |
342 the previous text is not lost. You can get back to it using the M-y | |
343 command. After you have done C-y to get the most recent kill, typing | |
344 M-Y replaces that yanked text with the previous kill. Typing M-y | |
345 again and again brings in earlier and earlier kills. When you | |
346 have reached the text you are looking for, you can just go away and | |
347 leave it there. If you M-y enough times, you come back to the | |
348 starting point (the most recent kill). | |
349 | |
350 >> Kill a line, move around, kill another line. | |
351 Then do C-y to get back the second killed line. | |
352 Then do M-y and it will be replaced by the first killed line. | |
353 Do more M-y's and see what you get. Keep doing them until | |
354 the second kill line comes back, and then a few more. | |
355 If you like, you can try giving M-y positive and negative | |
356 arguments. | |
357 | |
358 | |
1375 | 359 * UNDO |
360 ------ | |
13 | 361 |
362 Any time you make a change to the text and wish you had not done so, | |
363 you can undo the change (return the text to its previous state) | |
364 with the undo command, C-x u. Normally, C-x u undoes one command's | |
365 worth of changes; if you repeat the C-x u several times in a row, | |
366 each time undoes one more command. There are two exceptions: | |
367 commands that made no change (just moved the cursor) do not count, | |
368 and self-inserting characters are often lumped together in groups | |
369 of up to 20. This is to reduce the number of C-x u's you have to type. | |
370 | |
371 >> Kill this line with C-k, then type C-x u and it should reappear. | |
372 | |
373 C-_ is another command for undoing; it is just the same as C-x u | |
374 but easier to type several times in a row. The problem with C-_ is | |
375 that on some keyboards it is not obvious how to type it. That is | |
376 why C-x u is provided as well. On some DEC terminals, you can type | |
377 C-_ by typing / while holding down CTRL. Illogical, but what can | |
378 you expect from DEC? | |
379 | |
380 Giving a numeric argument to C-_ or C-x u is equivalent to repeating | |
381 it as many times as the argument says. | |
382 | |
383 | |
1375 | 384 * FILES |
385 ------- | |
13 | 386 |
387 In order to make the text you edit permanent, you must put it in a | |
388 file. Otherwise, it will go away when your invocation of Emacs goes | |
389 away. You put your editing in a file by "finding" the file. What | |
390 finding means is that you see the contents of the file in your Emacs; | |
391 and, loosely speaking, what you are editing is the file itself. | |
392 However, the changes still don't become permanent until you "save" the | |
393 file. This is so you can have control to avoid leaving a half-changed | |
394 file around when you don't want to. Even then, Emacs leaves the | |
395 original file under a changed name in case your changes turn out | |
396 to be a mistake. | |
397 | |
398 If you look near the bottom of the screen you will see a line that | |
399 begins and ends with dashes, and contains the string "Emacs: TUTORIAL". | |
400 Your copy of the Emacs tutorial is called "TUTORIAL". Whatever | |
401 file you find, that file's name will appear in that precise | |
402 spot. | |
403 | |
404 The commands for finding and saving files are unlike the other | |
405 commands you have learned in that they consist of two characters. | |
406 They both start with the character Control-x. There is a whole series | |
407 of commands that start with Control-x; many of them have to do with | |
408 files, buffers, and related things, and all of them consist of | |
409 Control-x followed by some other character. | |
410 | |
411 Another thing about the command for finding a file is that you have | |
412 to say what file name you want. We say the command "reads an argument | |
413 from the terminal" (in this case, the argument is the name of the | |
414 file). After you type the command | |
415 | |
416 C-x C-f Find a file | |
417 | |
418 Emacs asks you to type the file name. It echoes on the bottom | |
419 line of the screen. You are using the minibuffer now! this is | |
420 what the minibuffer is for. When you type <Return> to end the | |
421 file name, the minibuffer is no longer needed, so it disappears. | |
422 | |
423 >> Type C-x C-f, then type C-g. This cancels the minibuffer, | |
424 and also cancels the C-x C-f command that was using the | |
425 minibuffer. So you do not find any file. | |
426 | |
427 In a little while the file contents appear on the screen. You can | |
428 edit the contents. When you wish to make the changes permanent, | |
429 issue the command | |
430 | |
431 C-x C-s Save the file | |
432 | |
433 The contents of Emacs are written into the file. The first time you | |
434 do this, the original file is renamed to a new name so that it | |
435 is not lost. The new name is made by appending "~" to the end | |
436 of the original file's name. | |
437 | |
438 When saving is finished, Emacs prints the name of the file written. | |
439 You should save fairly often, so that you will not lose very much | |
440 work if the system should crash. | |
441 | |
442 >> Type C-x C-s, saving your copy of the tutorial. | |
443 This should print "Wrote .../TUTORIAL" at the bottom of the screen. | |
444 On VMS it will print "Wrote ...[...]TUTORIAL." | |
445 | |
8128
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
446 NOTE: On some systems, typing C-x C-s will freeze the screen and you |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
447 will see no further output from Emacs. This indicates that an |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
448 operating system "feature" called "flow control" is intercepting the |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
449 C-s and not letting it get through to Emacs. To unfreeze the screen, |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
450 type C-q. Then see the section "Spontaneous Entry to Incremental |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
451 Search" in the Emacs manual for advice on dealing with this "feature". |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
452 |
13 | 453 To make a new file, just find it "as if" it already existed. Then |
454 start typing in the text. When you ask to "save" the file, Emacs | |
455 will really create the file with the text that you have inserted. | |
456 From then on, you can consider yourself to be editing an already | |
457 existing file. | |
458 | |
459 | |
1375 | 460 * BUFFERS |
461 --------- | |
13 | 462 |
463 If you find a second file with C-x C-f, the first file remains | |
464 inside Emacs. You can switch back to it by finding it again with | |
465 C-x C-f. This way you can get quite a number of files inside Emacs. | |
466 | |
467 The object inside Emacs which holds the text read from one file | |
468 is called a "buffer." Finding a file makes a new buffer inside Emacs. | |
469 To see a list of the buffers that exist in Emacs, type | |
470 | |
471 C-x C-b List buffers | |
472 | |
473 >> Try C-x C-b now. | |
474 | |
475 See how each buffer has a name, and it may also have a file name | |
476 for the file whose contents it holds. Some buffers do not correspond | |
477 to files. For example, the buffer named "*Buffer List*" does | |
478 not have any file. It is the buffer which contains the buffer | |
479 list that was made by C-x C-b. ANY text you see in an Emacs window | |
480 has to be in some buffer. | |
481 | |
482 >> Type C-x 1 to get rid of the buffer list. | |
483 | |
484 If you make changes to the text of one file, then find another file, | |
485 this does not save the first file. Its changes remain inside Emacs, | |
486 in that file's buffer. The creation or editing of the second file's | |
487 buffer has no effect on the first file's buffer. This is very useful, | |
488 but it also means that you need a convenient way to save the first | |
489 file's buffer. It would be a nuisance to have to switch back to | |
490 it with C-x C-f in order to save it with C-x C-s. So we have | |
491 | |
492 C-x s Save some buffers | |
493 | |
494 C-x s goes through the list of all the buffers you have | |
495 and finds the ones that contain files you have changed. | |
496 For each such buffer, C-x s asks you whether to save it. | |
497 | |
498 | |
1375 | 499 * EXTENDING THE COMMAND SET |
500 --------------------------- | |
13 | 501 |
502 There are many, many more Emacs commands than could possibly be put | |
503 on all the control and meta characters. Emacs gets around this with | |
504 the X (eXtend) command. This comes in two flavors: | |
505 | |
506 C-x Character eXtend. Followed by one character. | |
507 M-x Named command eXtend. Followed by a long name. | |
508 | |
509 These are commands that are generally useful but used less than the | |
510 commands you have already learned about. You have already seen two | |
511 of them: the file commands C-x C-f to Find and C-x C-s to Save. | |
512 Another example is the command to tell Emacs that you'd like to stop | |
513 editing and get rid of Emacs. The command to do this is C-x C-c. | |
514 (Don't worry; it offers to save each changed file before it kills the | |
515 Emacs.) | |
516 | |
9560
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
517 C-z is the command to exit Emacs *temporarily*--so that you can go |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
518 back to the same Emacs session afterward. |
13 | 519 |
9560
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
520 On systems which allow it, C-z exits from Emacs to the shell but does |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
521 not destroy the Emacs; if you use the C shell, you can resume Emacs |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
522 with the `fg' command (or, more generally, with `%emacs', which works |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
523 even if your most recent job was some other). On systems which don't |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
524 implement suspending, C-z creates a subshell running under Emacs to |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
525 give you the chance to run other programs and return to Emacs |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
526 afterward; it does not truly "exit" from Emacs. In this case, the |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
527 shell command `exit' is the usual way to get back to Emacs from the |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
528 subshell. |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
529 |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
530 The time to use C-x C-c is when you are about to log out. It's also |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
531 the right thing to use to exit an Emacs invoked under mail handling |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
532 programs and other random utilities, since they may not know how to |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
533 cope with suspension of Emacs. On other occasions, use C-z, and |
4217123670e2
Better info about C-z vs C-x C-c.
Richard M. Stallman <rms@gnu.org>
parents:
8128
diff
changeset
|
534 resume the Emacs when you have more editing to do. |
13 | 535 |
536 There are many C-x commands. The ones you know are: | |
537 | |
538 C-x C-f Find file. | |
539 C-x C-s Save file. | |
540 C-x C-b List buffers. | |
541 C-x C-c Quit Emacs. | |
542 C-x u Undo. | |
543 | |
544 Named eXtended commands are commands which are used even less | |
545 frequently, or commands which are used only in certain modes. These | |
546 commands are usually called "functions". An example is the function | |
547 replace-string, which globally replaces one string with another. When | |
548 you type M-x, Emacs prompts you at the bottom of the screen with | |
549 M-x and you should type the name of the function you wish to call; in | |
550 this case, "replace-string". Just type "repl s<TAB>" and Emacs will | |
551 complete the name. End the command name with <Return>. | |
552 Then type the two "arguments"--the string to be replaced, and the string | |
553 to replace it with--each one ended with a Return. | |
554 | |
555 >> Move the cursor to the blank line two lines below this one. | |
556 Then type M-x repl s<Return>changed<Return>altered<Return>. | |
557 | |
558 Notice how this line has changed: you've replaced | |
34 | 559 the word c-h-a-n-g-e-d with "altered" wherever it occurred |
13 | 560 after the cursor. |
561 | |
562 | |
10698 | 563 * AUTO SAVE |
564 ----------- | |
565 | |
566 When you have made changes in a file, but you have not saved them yet, | |
567 they could be lost if your computer crashes. To protect you from | |
568 this, Emacs writes "auto save" files periodically. The auto save file | |
10699 | 569 name has a # at the beginning and the end; for example, if your file |
570 is named "hello.c", its auto save file's name is "#hello.c#". When | |
571 you save the file in the normal way, its auto save file is no longer | |
10698 | 572 necessary so Emacs deletes it. |
573 | |
574 If the computer crashes, you can recover your auto-saved editing by | |
575 finding the file normally (the file you were editing, not the auto | |
576 save file) and then typing M-x recover file<return>. When it asks for | |
577 confirmation, type yes<return> to go ahead and recover the auto-save | |
578 data. | |
579 | |
580 | |
1375 | 581 * MODE LINE |
582 ----------- | |
13 | 583 |
584 If Emacs sees that you are typing commands slowly it shows them to you | |
585 at the bottom of the screen in an area called the "echo area." The echo | |
586 area contains the bottom line of the screen. The line immediately above | |
587 it is called the MODE LINE. The mode line says something like | |
588 | |
4351
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
589 --**-Emacs: TUTORIAL (Fundamental)--58%---------------------- |
13 | 590 |
591 This is a very useful "information" line. | |
592 | |
593 You already know what the filename means--it is the file you have | |
594 found. What the --NN%-- means is that NN percent of the file is | |
595 above the top of the screen. If the top of the file is on the screen, | |
4351
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
596 it will say --Top-- instead of --00%--. If the bottom of the file is |
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
597 on the screen, it will say --Bot--. If you are looking at a file so |
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
598 small it all fits on the screen, it says --All--. |
13 | 599 |
600 The stars near the front mean that you have made changes to the text. | |
601 Right after you visit or save a file, there are no stars, just dashes. | |
602 | |
603 The part of the mode line inside the parentheses is to tell you what | |
604 modes you are in. The default mode is Fundamental which is what you | |
605 are in now. It is an example of a "major mode". There are several | |
606 major modes in Emacs for editing different languages and text, such as | |
607 Lisp mode, Text mode, etc. At any time one and only one major mode is | |
608 active, and its name can always be found in the mode line just where | |
609 "Fundamental" is now. Each major mode makes a few commands behave | |
610 differently. For example, there are commands for creating comments in | |
611 a program, and since each programming language has a different idea of | |
612 what a comment should look like, each major mode has to insert | |
613 comments differently. Each major mode is the name of an extended | |
614 command, which is how you get into the mode. For example, | |
4351
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
615 M-x fundamental-mode is how to get into Fundamental mode. |
13 | 616 |
617 If you are going to be editing English text, such as this file, you | |
618 should probably use Text Mode. | |
619 >> Type M-x text-mode<Return>. | |
620 | |
621 Don't worry, none of the commands you have learned changes Emacs in | |
2619 | 622 any great way. But you can observe that apostrophes are now part of |
623 words when you do M-f or M-b. Major modes are usually like that: | |
624 commands don't change into completely unrelated things, but they work | |
625 a little bit differently. | |
13 | 626 |
627 To get documentation on your current major mode, type C-h m. | |
628 | |
629 >> Use C-u C-v once or more to bring this line near the top of screen. | |
630 >> Type C-h m, to see how Text mode differs from Fundamental mode. | |
631 >> Type C-x 1 to remove the documentation from the screen. | |
632 | |
633 Major modes are called major because there are also minor modes. | |
634 They are called minor because they aren't alternatives to the major | |
635 modes, just minor modifications of them. Each minor mode can be | |
636 turned on or off by itself, regardless of what major mode you are in, | |
637 and regardless of the other minor modes. So you can use no minor | |
638 modes, or one minor mode, or any combination of several minor modes. | |
639 | |
640 One minor mode which is very useful, especially for editing English | |
641 text, is Auto Fill mode. When this mode is on, Emacs breaks the line | |
642 in between words automatically whenever the line gets too long. You | |
643 can turn this mode on by doing M-x auto-fill-mode<Return>. When the | |
644 mode is on, you can turn it off by doing M-x auto-fill-mode<Return>. | |
645 If the mode is off, this function turns it on, and if the mode is on, | |
646 this function turns it off. This is called "toggling". | |
647 | |
648 >> Type M-x auto-fill-mode<Return> now. Then insert a line of "asdf " | |
649 over again until you see it divide into two lines. You must put in | |
650 spaces between them because Auto Fill breaks lines only at spaces. | |
651 | |
652 The margin is usually set at 70 characters, but you can change it | |
653 with the C-x f command. You should give the margin setting you want | |
654 as a numeric argument. | |
655 | |
656 >> Type C-x f with an argument of 20. (C-u 2 0 C-x f). | |
657 Then type in some text and see Emacs fill lines of 20 | |
658 characters with it. Then set the margin back to 70 using | |
659 C-x f again. | |
660 | |
661 If you makes changes in the middle of a paragraph, Auto Fill mode | |
662 does not re-fill it for you. | |
663 To re-fill the paragraph, type M-q (Meta-q) with the cursor inside | |
664 that paragraph. | |
665 | |
666 >> Move the cursor into the previous paragraph and type M-q. | |
667 | |
1375 | 668 * SEARCHING |
669 ----------- | |
13 | 670 |
671 Emacs can do searches for strings (these are groups of contiguous | |
672 characters or words) either forward through the file or backward | |
673 through it. To search for the string means that you are trying to | |
674 locate it somewhere in the file and have Emacs show you where the | |
675 occurrences of the string exist. This type of search is somewhat | |
676 different from what you may be familiar with. It is a search that is | |
677 performed as you type in the thing to search for. The command to | |
678 initiate a search is C-s for forward search, and C-r for reverse | |
679 search. BUT WAIT! Don't do them now. When you type C-s you'll | |
680 notice that the string "I-search" appears as a prompt in the echo | |
681 area. This tells you that Emacs is in what is called an incremental | |
682 search waiting for you to type the thing that you want to search for. | |
4190
023ddd6f5c2b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
2863
diff
changeset
|
683 <RET> terminates a search. |
13 | 684 |
685 >> Now type C-s to start a search. SLOWLY, one letter at a time, | |
686 type the word 'cursor', pausing after you type each | |
687 character to notice what happens to the cursor. | |
688 >> Type C-s to find the next occurrence of "cursor". | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
689 >> Now type <Delete> four times and see how the cursor moves. |
4190
023ddd6f5c2b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
2863
diff
changeset
|
690 >> Type <RET> to terminate the search. |
13 | 691 |
692 Did you see what happened? Emacs, in an incremental search, tries to | |
693 go to the occurrence of the string that you've typed out so far. To go | |
694 to the next occurrence of 'cursor' just type C-s again. If no such | |
695 occurrence exists Emacs beeps and tells you that it is a failing | |
696 search. C-g would also terminate the search. | |
697 | |
8128
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
698 NOTE: On some systems, typing C-s will freeze the screen and you will |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
699 see no further output from Emacs. This indicates that an operating |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
700 system "feature" called "flow control" is intercepting the C-s and not |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
701 letting it get through to Emacs. To unfreeze the screen, type C-q. |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
702 Then see the section "Spontaneous Entry to Incremental Search" in the |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
703 Emacs manual for advice on dealing with this "feature". |
027fb17a2952
Talk about flow control along with C-x C-s and C-s.
Richard M. Stallman <rms@gnu.org>
parents:
6597
diff
changeset
|
704 |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
705 If you are in the middle of an incremental search and type <Delete>, |
13 | 706 you'll notice that the last character in the search string is erased |
707 and the search backs up to the last place of the search. For | |
708 instance, suppose you currently have typed 'cu' and you see that your | |
11903
5d0ad882565c
Delete reference to ALT. Change <Rubout> to <Delete>.
Karl Heuer <kwzh@gnu.org>
parents:
10699
diff
changeset
|
709 cursor is at the first occurrence of 'cu'. If you now type <Delete>, |
13 | 710 the 'u' on the search line is erased and you'll be repositioned in the |
711 text to the occurrence of 'c' where the search took you before you | |
712 typed the 'u'. This provides a useful means for backing up while you | |
713 are searching. | |
714 | |
4351
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
715 If you are in the middle of a search and type a control or meta |
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
716 character (with a few exceptions--characters that are special in |
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
717 a search, such as C-s and C-r), the search is terminated. |
13 | 718 |
719 The C-s starts a search that looks for any occurrence of the search | |
720 string AFTER the current cursor position. But what if you want to | |
721 search for something earlier in the text? To do this, type C-r for | |
722 Reverse search. Everything that applies to C-s applies to C-r except | |
723 that the direction of the search is reversed. | |
724 | |
725 | |
1375 | 726 * MULTIPLE WINDOWS |
727 ------------------ | |
476 | 728 |
729 One of the nice features of Emacs is that you can display more than one | |
730 window on the screen at the same time. | |
731 | |
732 >> Move the cursor to this line and type C-u 0 C-l. | |
733 | |
734 >> Now type C-x 2 which splits the screen into two windows. | |
735 Both windows display this tutorial. The cursor stays in the top window. | |
736 | |
737 >> Type C-M-v to scroll the bottom window. | |
6276 | 738 (If you don't have a real Meta key, type ESC C-v.) |
476 | 739 |
740 >> Type C-x o ("o" for "other") to move the cursor to the bottom window. | |
741 >> Use C-v and M-v in the bottom window to scroll it. | |
742 Keep reading these directions in the top window. | |
743 | |
744 >> Type C-x o again to move the cursor back to the top window. | |
745 The cursor is still just where it was in the top window before. | |
746 | |
747 You can keep using C-x o to switch between the windows. Each | |
748 window has its own cursor position, but only one window actually | |
749 shows the cursor. All the ordinary editing commands apply to the | |
750 window that the cursor is in. | |
751 | |
752 The command C-M-v is very useful when you are editing text in one | |
753 window and using the other window just for reference. You can keep | |
754 the cursor always in the window where you are editing, and edit | |
755 there as you advance through the other window. | |
756 | |
757 >> Type C-x 1 (in the top window) to get rid of the bottom window. | |
758 | |
759 (If you had typed C-x 1 in the bottom window, that would get rid | |
760 of the top one. Think of this command as "Keep just one | |
761 window--the window I am already in.") | |
762 | |
763 You don't have to display the same buffer in both windows. If | |
764 you use C-x C-f to find a file in one window, the other window | |
765 doesn't change. You can pick a file in each window | |
766 independently. | |
767 | |
768 Here is another way to use two windows to display two different | |
769 things: | |
770 | |
771 >> Type C-x 4 C-f followed by the name of one of your files. | |
772 End with <RETURN>. See the specified file appear in the bottom | |
773 window. The cursor goes there, too. | |
774 | |
775 >> Type C-x o to go back to the top window, and C-x 1 to delete | |
776 the bottom window. | |
777 | |
778 | |
1375 | 779 * RECURSIVE EDITING LEVELS |
780 -------------------------- | |
13 | 781 |
782 Sometimes you will get into what is called a "recursive editing | |
783 level". This is indicated by square brackets in the mode line, | |
784 surrounding the parentheses around the major mode name. For | |
785 example, you might see [(Fundamental)] instead of (Fundamental). | |
786 | |
787 To get out of the recursive editing level, type | |
788 M-x top-level<Return>. | |
789 | |
790 >> Try that now; it should display "Back to top level" | |
791 at the bottom of the screen. | |
792 | |
793 In fact, you were ALREADY at top level (not inside a recursive editing | |
794 level) if you have obeyed instructions. M-x top-level does not care; | |
795 it gets out of any number of recursive editing levels, perhaps zero, | |
796 to get back to top level. | |
797 | |
798 You can't use C-g to get out of a recursive editing level because C-g | |
799 is used for discarding numeric arguments and partially typed commands | |
800 WITHIN the recursive editing level. | |
801 | |
802 | |
1375 | 803 * GETTING MORE HELP |
804 ------------------- | |
13 | 805 |
806 In this tutorial we have tried to supply just enough information to | |
807 get you started using Emacs. There is so much available in Emacs that | |
808 it would be impossible to explain it all here. However, you may want | |
809 to learn more about Emacs since it has numerous desirable features | |
810 that you don't know about yet. Emacs has a great deal of internal | |
811 documentation. All of these commands can be accessed through | |
812 the character Control-h, which we call "the Help character" | |
813 because of the function it serves. | |
814 | |
815 To use the HELP features, type the C-h character, and then a | |
816 character saying what kind of help you want. If you are REALLY lost, | |
817 type C-h ? and Emacs will tell you what kinds of help it can give. | |
818 If you have typed C-h and decide you don't want any help, just | |
4351
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
819 type C-g to cancel it. |
13 | 820 |
6597
c78bae220849
Advise about case where C-h is rebound.
Richard M. Stallman <rms@gnu.org>
parents:
6276
diff
changeset
|
821 (Some sites rebind the character C-h. They really shouldn't do this |
c78bae220849
Advise about case where C-h is rebound.
Richard M. Stallman <rms@gnu.org>
parents:
6276
diff
changeset
|
822 as a blanket measure, so complain to the operator. Meanwhile, if C-h |
c78bae220849
Advise about case where C-h is rebound.
Richard M. Stallman <rms@gnu.org>
parents:
6276
diff
changeset
|
823 does not display a message about help at the bottom of the screen, try |
c78bae220849
Advise about case where C-h is rebound.
Richard M. Stallman <rms@gnu.org>
parents:
6276
diff
changeset
|
824 typing M-x help RET instead.) |
c78bae220849
Advise about case where C-h is rebound.
Richard M. Stallman <rms@gnu.org>
parents:
6276
diff
changeset
|
825 |
13 | 826 The most basic HELP feature is C-h c. Type C-h, a c, and a |
827 command character or sequence, and Emacs displays a very brief | |
828 description of the command. | |
829 | |
830 >> Type C-h c Control-p. | |
831 The message should be something like | |
832 | |
833 C-p runs the command previous-line | |
834 | |
835 This tells you the "name of the function". That is important in | |
836 writing Lisp code to extend Emacs; it also is enough to remind | |
837 you of what the command does if you have seen it before but did | |
838 not remember. | |
839 | |
840 Multi-character commands such as C-x C-s and (if you have no META or | |
841 EDIT key) <ESC>v are also allowed after C-h c. | |
842 | |
843 To get more information on the command, use C-h k instead of C-h c. | |
844 | |
845 >> Type C-h k Control-p. | |
846 | |
477 | 847 This displays the documentation of the function, as well as its |
848 name, in an Emacs window. When you are finished reading the | |
849 output, type C-x 1 to get rid of the help text. You do not have | |
850 to do this right away. You can do some editing while referring | |
851 to the help text and then type C-x 1. | |
13 | 852 |
853 Here are some other useful C-h options: | |
854 | |
855 C-h f Describe a function. You type in the name of the | |
856 function. | |
857 | |
858 >> Try typing C-h f previous-line<Return>. | |
859 This prints all the information Emacs has about the | |
4351
2173e8c3723b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
4190
diff
changeset
|
860 function which implements the C-p command. |
13 | 861 |
862 C-h a Command Apropos. Type in a keyword and Emacs will list | |
863 all the commands whose names contain that keyword. | |
864 These commands can all be invoked with Meta-x. | |
865 For some commands, Command Apropos will also list a one | |
866 or two character sequence which has the same effect. | |
867 | |
477 | 868 >> Type C-h a file<Return>. |
869 | |
870 This displays in another window a list of all M-x commands with | |
871 "file" in their names. You will also see commands like C-x C-f | |
872 and C-x C-w, listed beside the command names find-file and | |
873 write-file. | |
874 | |
875 >> Type C-M-v to scroll the help window. Do this a few times. | |
876 | |
877 >> Type C-x 1 to delete the help window. | |
13 | 878 |
879 | |
1375 | 880 * CONCLUSION |
881 ------------ | |
13 | 882 |
883 Remember, to exit Emacs permanently use C-x C-c. To exit to a shell | |
884 temporarily, so that you can come back in, use C-z. | |
885 | |
886 This tutorial is meant to be understandable to all new users, so if | |
887 you found something unclear, don't sit and blame yourself - complain! | |
888 | |
889 | |
890 COPYING | |
891 ------- | |
892 | |
893 This tutorial descends from a long line of Emacs tutorials | |
894 starting with the one written by Stuart Cracraft for the original Emacs. | |
895 | |
896 This version of the tutorial, like GNU Emacs, is copyrighted, and | |
897 comes with permission to distribute copies on certain conditions: | |
898 | |
899 Copyright (c) 1985 Free Software Foundation | |
900 | |
901 Permission is granted to anyone to make or distribute verbatim copies | |
902 of this document as received, in any medium, provided that the | |
903 copyright notice and permission notice are preserved, | |
904 and that the distributor grants the recipient permission | |
905 for further redistribution as permitted by this notice. | |
906 | |
907 Permission is granted to distribute modified versions | |
908 of this document, or of portions of it, | |
909 under the above conditions, provided also that they | |
910 carry prominent notices stating who last altered them. | |
911 | |
912 The conditions for copying Emacs itself are slightly different | |
913 but in the same spirit. Please read the file COPYING and then | |
914 do give copies of GNU Emacs to your friends. | |
915 Help stamp out software obstructionism ("ownership") by using, | |
916 writing, and sharing free software! |