STARTING EDMACS SAMPLE EXECUTION +---------------------------------+ MU [44,12]EDMACS filnam.ext | _ | When you start out for the first time or | | the screen is blank as is the one at MU [44,12]EDMACS outname=inname | | left. When you start typing, what | | you type appears on the screen as you These commands will start up to edit +---------------------------------+ are typing it. See what happens when a file. If it does not exist, a new we type the word "Hi!" one will be created. If the second Typed: Hi! form is used, outname will be the +---------------------------------+ result file, and EDMACS will take | Hi!_ | OK, we've typed "Hi!". its input from inname. | | | | The screen now contains the word CHANGING FILES WITHIN EDMACS | | "Hi!". +---------------------------------+ C-X C-V If we type some more, we should see Typed: My name is Tommy Totoh more appear on the screen. Let's see This command will offer to save the +---------------------------------+ what happens. file currently being edited. Answer | Hi! My name is Tommy Totoh_ | Yes or No. You will then be asked to | | Well it looks like it still works. name another file to edit. Type its | | What we have typed has appeared on name, a return, and begin editing it. | | the screen. +---------------------------------+ Oops! Looks like we have typed the LEAVING EDMACS word "Tooth" wrong. Let's see how Typed: C-B we fix it. C-X C-Z +---------------------------------+ | Hi! My name is Tommy Totoh_ | We need to go backwards. Press the Exit and Save. Edmacs will ask you to | | control key and "B" together for the confirm with 'Yes' before exiting. | | control command "backwards". Now we | | are immediately following the mistake ESC -1 C-X C-Z +---------------------------------+ and we can rub out the two characters With a negative argument, Edmacs will that we typed wrong. exit without saving. Typed: Rubout Rubout +---------------------------------+ OK, we've pressed rubout twice. INSERTION | Hi! My name is Tommy toh_ | See how the two characters vanished? | | Start typing immediately. There is no | | Now we are ready to put the letters insert command. Whatever you type is | | "ot" in there. inserted. While the RETURN key will +---------------------------------+ move you to the start of a fresh line All we need to do is to type them. line, the LINEFEED key will indent Typed: ot the new line to match the indentation +---------------------------------+ present on the last non blank line. | Hi! My name is Tommy Tooth_ | Well, that looks ok. Say, would'nt | | it be nice if the name were on a line OVERPRINT The only "special MODE" | | all by itself? I think so! | | To do this, we want to go back two Causes what you type to replace +---------------------------------+ words. (To the beginning of the name what is under the cursor instead of Tommy). shoving it to the right as usual. To Typed: ESC-B ESC-B exit Overprint Mode, use C-X Q. +---------------------------------+ To do this, we press the ESCAPE key, | Hi! My name is T_ommy Tooth | release it, and then press "B". This SEARCHING | | is called "ESCAPE backwards" and just | | as we used "control backwards" to The command C-Z prompts you for a | | move back a letter, we use ESC-B for string to search for. Type in what +---------------------------------+ moving back by a word. Here, we had you want to find, then type ESCAPE to do this twice since we needed to twice. If the search fails, the bell Typed: go back by two words. will sound. ESC -Z will repeat the +---------------------------------+ search, and C-R will do a search in | Hi! My name is | Finally, we type a carriage return the reverse direction. | T_ommy Tooth | which moves the rest of the line down | | to the beginning of the next line. | | +---------------------------------+