Mercurial > emacs
comparison etc/TUTORIAL @ 12647:b94ff6c62c5d
Explain CTRL-META chars and how to use ESC for them.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 24 Jul 1995 05:21:31 +0000 |
parents | 5cb83d6bbce1 |
children | 18c79b8e0396 |
comparison
equal
deleted
inserted
replaced
12646:cd83cf47be08 | 12647:b94ff6c62c5d |
---|---|
1 Copyright (c) 1985 Free Software Foundation, Inc; See end for conditions. | 1 Copyright (c) 1985 Free Software Foundation, Inc; See end for conditions. |
2 | 2 |
3 You are looking at the Emacs tutorial. | 3 You are looking at the Emacs tutorial. |
4 | 4 |
5 Emacs commands generally involve the CONTROL key (sometimes labelled | 5 Emacs commands generally involve the CONTROL key (sometimes labelled |
6 CTRL or CTL) or the META key (sometimes labelled EDIT). Rather than | 6 CTRL or CTL) or the META key (sometimes labelled EDIT or ALT). Rather than |
7 write out META or CONTROL each time we want you to prefix a character, | 7 write out META or CONTROL each time we want you to prefix a character, |
8 we'll use the following abbreviations: | 8 we'll use the following abbreviations: |
9 | 9 |
10 C-<chr> means hold the CONTROL key while typing the character <chr> | 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. | 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>. | 12 M-<chr> means hold the META or EDIT or ALT key down while typing <chr>. |
13 If there is no META or EDIT key, type <ESC>, release it, | 13 If there is no META key or equivalent, type <ESC>, release it, |
14 then type the character <chr>. "<ESC>" stands for the | 14 then type the character <chr>. "<ESC>" stands for the |
15 key labelled "ESC". | 15 key labelled "ESC". |
16 | 16 |
17 Important note: to end the Emacs session, type C-x C-c. (Two characters.) | 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 | 18 The characters ">>" at the left margin indicate directions for you to |
751 The command C-M-v is very useful when you are editing text in one | 751 The command C-M-v is very useful when you are editing text in one |
752 window and using the other window just for reference. You can keep | 752 window and using the other window just for reference. You can keep |
753 the cursor always in the window where you are editing, and edit | 753 the cursor always in the window where you are editing, and edit |
754 there as you advance through the other window. | 754 there as you advance through the other window. |
755 | 755 |
756 C-M-v is an example of a CONTROL-META character. If you have a real | |
757 META key, you can type C-M-v by holding down both CTRL and META while | |
758 typing v. | |
759 | |
760 It doesn't matter whether CTRL or META "comes first," because both of | |
761 these keys act by modifying the characters you type. But if you don't | |
762 have a real META key, and you use ESC instead, the order does matter: | |
763 you must type ESC followed by CTRL-v; CTRL-ESC v will not work. This | |
764 is because ESC is a character in its own right, not a modifier key. | |
765 | |
756 >> Type C-x 1 (in the top window) to get rid of the bottom window. | 766 >> Type C-x 1 (in the top window) to get rid of the bottom window. |
757 | 767 |
758 (If you had typed C-x 1 in the bottom window, that would get rid | 768 (If you had typed C-x 1 in the bottom window, that would get rid |
759 of the top one. Think of this command as "Keep just one | 769 of the top one. Think of this command as "Keep just one |
760 window--the window I am already in.") | 770 window--the window I am already in.") |