(KEYBOARD MACRO FILE (used to be called ED.MAC) (These key assignments show ways to customize the ED.DEF This file is not (intended to be used as-is. See "Customizing the Edit Control File" in the (User's Guide for more info. (TO COPY A MACRO BELOW TO ED.DEF: (Press Ctl F6 at the start of the macro, move down past the end, (press Ctl F6 again. At the filename prompt, type ED.DEF, or name (of the edit control file receiving the macro. F5 clears marking. (INITIAL EDIT MODES, use only one 400: line in ED.DEF (Start in Overwrite mode (Scroll Lock) 400:258 (Start in hide mode (Alt Space) 400:399 (Start in Para+ mode (Shf F7) 400:346 (Turn on auto-spell check (Alt F2, F7) 400:361,321 (TAB KEYS (Make Tab key (270) inserts blanks to the next tab stop in Pushright (and advance cursor to the next tab stop in Overwrite (420). 270:420 (Make Shf Tab key (271) delete spaces to left of the previous tab (in Pushright, and move cursor back to the last tab in Overwrite (421). 271:421 (Make Tab insert spaces in both Pushright and Overwrite. 270:727 (Make Back Tab delete spaces to last tab in both modes. 271:728 (ENTER KEYS (Make Enter key (264) insert an end paragraph font character (Alt K) (then do an Enter. Useful if you need a hard end of paragraph. 264:20,264 (Make Enter key just drop to the start of the next line in (Overwrite mode and still insert a line in Pushright mode. 264:422 (Make Enter key in the middle of a line move the cursor (to the left margin, not to paragraph indent (open paragraph). 264:452 (Make Enter key stay on the same line at the end, inserting (line boundary after it (like Wordstar Ctl N). 264:453 (MOVING AROUND THE SCREEN (If you are among the 30% of people who find Page Up and Page Down keys (opposite of what is natural, here are the redefinitions you need. (The first makes Page Up key do a Page Down. The second makes Page (Down do a Page Up. The last two swap Shf PgUp and Shf PgDn. 329:337 337:329 297:312 312:297 (Make left arrow at line start go to end of prior line. 331:711 (Make right arrow at end of line go to next line start. 333:712 (Make Shf Left Arrow scroll horizontally one character left. 308:713 (Make Shf Right Arrow scroll horizontally one character right. 299:714 (Make Shf Left Arrow scroll horizontally one screen left. 308:715 (Make Shf Right Arrow scroll horizontally one screen right. 299:716 (CUSTOMIZING THE SCREEN CLIP COMMANDS (Make Shf Ctl F2 (not Shf Ctl F6) start Screen Clip. 615:351 (Make Shf F6 (not Shf Ctl F5) clear Hold during Screen Clip. 616:345 (These redefinitions are different than others. (They are backward; 615 or 616 comes before the key code. (FILE NAME MODIFIERS (Assign prefix to all file names. With this example, when you (type BANK.LET as a filename PC-Write edits B:BANK.&LE. 427:"B:" (Assign prefix to the backup file name only. With this example, when you (request a backup file, PC-Write uses the backup file name C:\BAK\BANK.LET. 428:"C:\BAK\" (Assigns a file name suffix for edited files. This may be a file extension, (or a command line parameter such as the /e or /r options. 429:"/e" (INSERTING TEXT, DATE, TIME, OR FILE NAME (Make Ctl D insert date in format March 20, 1986. D:566,'$$Month D, YEAR$$' (Make Ctl S insert date in format 03/20/86. S:566,'$$MO/DA/YE$$' (Make Ctl T insert CHAPTER1 05:56 (filename and time) T:566,'$$FILENAME HO:MI$$' (TWO-KEY SEQUENCES (In this example, Ctl-Q then A enters the word Abyssinian, (Ctl-Q B enters the word Balinese, and Ctl-Q C enters Calico. Q:555,"Cats"; 556,65,"Abyssinian"; 556,66,"Balinese"; 556,67,"Calico" (CUSTOMIZING ACCENT KEY PAIRS (Creates a custom accent key pair. In this example, 1, accent, 2 (entered at the keyboard produces the character 3. 567:'1','2','3',47,92,60 (REFORMAT ALL PARAGRAPHS WITHOUT HARD LINE BOUNDS FOR TYPESETTERS (Make Ctl-\ do operation 300, then reformat all paragraphs (Operation 300 toggles an "infinite" temporary right margin. 28:300,354,321,319 (OPEN A WINDOW IN LOWER HALF OF SCREEN and prompt for a second file name. (Ctl-F does Shf Up Arrow to top of screen, arrow down eleven lines, F2, (arrow down one, F1, F6. F:296,336,336,336,336,336,336,336,336,336,336,336,316,336,315,320 (OPEN BLANK SPACE FOR AND INSERTION AND CLOSE IT AGAIN USING BOOKMARKS (Place cursor where you want the space to open. Ctl-O places bookmark, ("presses" enter six times, places second bookmark, returns to first (bookmark, goes into overwrite mode. Ctl-C closes the space by marking (space from cursor to the second bookmark and deleting it, returns to (pushright mode. Use this with the Enter key redefined 264:422. O:375,264,264,264,264,264,264,438,373,258 C:318,436,318,258 (CHECK FOR MATCHING PARENTHESES (Ctl M adds parentheses and a message to the file, searches for matching (pairs using Alt F4, F4, and pauses so you can observe whether the marking (extends to include the message. If not, the pairs are not matched. The (macro cleans up, removing all it added. M:309,"(",298,375," IF MARKING MAKES IT HERE, PARENTHESES MATCH)",309; 363,318,424,424,424,424,319,309,339,373,318,298,318,319 (POWER MARKING COMMANDS (This macro block gives you some powerful text moves with a two-key sequence, (Ctl M followed by a letter. Codes 555 "User mode name" and 556 "User mode (sequence" are used to define a two-key sequence. See also ops 409 and 410, (which mark (or extend marking) for a word or line, respectively. M:555,"MarkMv"; 556,119,319,333,371,320,372,320,371; (Ctl MW Mark word 556,108,319,438,333,299,320,336,320,436; (Ctl ML Mark line 556,115,319,333,434,320,435,320,449; (Ctl MS Mark sentence 556,112,319,438,333,388,299,320,374,299,320,436;(Ctl MP Mark paragraph 556,102,319,333,371,320,372,320,372,320,371,319;(Ctl MF Transpose word forward 556,097,319,333,371,320,372,320,371,371,320; (Ctl MA Transpose word backwd 371,319; 556,121,298,264,264,392,436,319 (Ctl MY Move block