forked from torvalds/uemacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs.hlp
172 lines (170 loc) · 9.91 KB
/
emacs.hlp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
=> uEmacs/PK 4.0 HELP INDEX
.. The very basics
.. Cursor movement
.. File commands
.. Miscellaneous character commands
.. Mode commands
.. Keys and commands
.. Deleting and inserting
.. Formatting
.. Window commands
.. Buffer commands
.. Searching and replacing
.. Accessing the operating system
.. Macro commands
.. Miscellaneous
.. Functions
.. System variables
.. File name completion
-------------------------------------------------------------------------------
=> THE VERY BASICS
Notations: ^X means <Ctrl> and X. The <Meta> key is <Esc> on most systems.
Exiting: ^G aborts almost any operation. ^X ^C will get you out of uEmacs.
A BUFFER is a named area containing a FILE being edited. Many buffers may
be active at once. Many WINDOWS may be active at once on the screen. All
windows may show different parts of the same buffer, or each may display a
different one.
-------------------------------------------------------------------------------
=> CURSOR MOVEMENT
Backward character .... ^B Forward character ..... ^F
Previous word ......... Meta B Next word ............. Meta F
Beginning of line ..... ^A End of line ........... ^E
Previous line ......... ^P Next line ............. ^N
Previous paragraph .... Meta P Next paragraph ........ Meta N
Previous page ......... ^Z Next page ............. ^V
Beginning of file ..... Meta < End of file ........... Meta >
-------------------------------------------------------------------------------
=> FILE COMMANDS
Find file ............. ^X ^F Quick exit ............ Meta Z
View file ............. ^X ^V Exit emacs ............ ^X ^C
Insert file ........... ^X ^I
Change file name ...... ^X N Filter buffer ......... ^X #
Save file ............. ^X ^D
Read file ............. ^X ^R
Write file ............ ^X ^W Execute file .......... not bound
-------------------------------------------------------------------------------
=> MISCELLANEOUS CHARACTER COMMANDS
Newline ............... ^M Transpose characters .. ^T
Newline and indent .... ^J Trim line ............. ^X ^T
Open line ............. ^O
Handle tab ............ ^I Quote character ....... ^X Q
Insert space .......... ^C
Goto line ............. Meta G Abort command ......... ^G
Goto matching fence ... Meta ^F
-------------------------------------------------------------------------------
=> MODE COMMANDS
Add mode .............. ^X M Add global mode ....... Meta M
Delete mode ........... ^X ^M Delete global mode .... Meta ^M
OVER :: Overwrite, don't insert MAGIC :: Match patterns in search
WRAP :: Automatic carriage return ^ $ Beginning and end of line
VIEW :: View only, don't change . Any character \c Character c
CMODE :: C program indenting c* Any number of character c
EXACT :: Match case in search [ ] Character class
-------------------------------------------------------------------------------
=> KEYS AND COMMANDS
Bind to key ........... Meta K Help .................. Meta ?
Unbind key ............ Meta ^K Apropos ............... Meta A
Describe key .......... ^X ? Abort command ......... ^G
Describe bindings ..... not bound
Meta prefix ........... Esc :: Although meta-prefix can be bound to
Cntlx prefix .......... ^X :: some other key, no other command can
Execute named command . Meta X :: be bound to Esc.
-------------------------------------------------------------------------------
=> DELETING AND INSERTING
Delete previous character ^H Delete next character . ^D
Delete previous word .. Meta ^H Delete next word ...... Meta D
Kill to end of line ... ^K Set mark .............. Meta Space
Kill region ........... ^W Yank .................. ^Y
Kill paragraph ........ Meta ^W Exchange point and mark ^X ^X
Delete blank lines .... ^X ^O :: A region is defined as the area between
Copy region ........... Meta W :: the mark and the current position.
-------------------------------------------------------------------------------
=> FORMATTING
Case word upper ....... Meta U Case word lower ....... Meta L
Case region upper ..... ^X ^U Case region lower ..... ^X ^L
Case word capitalize .. Meta C Trim line ............. ^X ^T
Detab line ............ ^X ^A
Set fill column ....... ^X F Entab line ............ ^X ^E
Fill paragraph ........ Meta Q Change screen size .... Meta ^D
Justify paragraph ..... Meta J Change screen width ... Meta ^T
-------------------------------------------------------------------------------
=> WINDOW COMMANDS
Split current window .. ^X 2 Next window ........... ^X O
Delete other windows .. ^X 1 Previous window ....... ^X P
Delete window ......... ^X 0 Scroll next up ........ Meta ^Z
Grow window ........... ^X Z Scroll next down ...... Meta ^V
Shrink window ......... ^X ^Z Resize window ......... ^X W
Move window up ........ ^X ^P Save window ........... not bound
Move window down ...... ^X ^N Restore window ........ not bound
-------------------------------------------------------------------------------
=> BUFFER COMMANDS
Next buffer ........... ^X X Buffer position ....... ^X =
Select buffer ......... ^X B Unmark buffer ......... Meta ~
List buffers .......... ^X ^B
Delete buffer ......... ^X K Write message ......... not bound
Name buffer ........... Meta ^N Clear message line .... not bound
Filter buffer ......... ^X #
Pipe command .......... ^X @ Execute buffer ........ not bound
-------------------------------------------------------------------------------
=> SEARCHING AND REPLACING
Search forward ........ Meta S :: End string with Meta.
Incremental search .... ^X S :: Search next ^X, stop Meta, cancel ^G.
Search reverse ........ ^R
Reverse incremental search Hunt forward .......... Alt-S
....................... ^X R Hunt backward ......... Alt-R
Replace string ........ Meta R
Query replace string .. Meta ^R :: Yes/no Y/N, replace rest !, cancel ^G.
-------------------------------------------------------------------------------
=> ACCESSING THE OPERATING SYSTEM
Quick exit ............ Meta Z :: Write out all changed buffers and exit.
Exit emacs ............ ^X ^C :: Exit without automatic save.
I shell ............... ^X C :: Start a new command processor.
Shell command ......... ^X ! :: Execute one operating system command.
Pipe command .......... ^X @ :: Pipe command results to a new buffer. *
Filter buffer ......... ^X # :: Filter buffer through a program. *
Execute program ....... ^X $ :: * Not under VMS.
-------------------------------------------------------------------------------
=> MACRO COMMANDS
Begin macro ........... ^X (
End macro ............. ^X )
Execute macro ......... ^X E
Store macro ........... not bound
Execute macro nn ...... not bound
Store procedure ....... not bound
Execute procedure ..... Meta ^E
-------------------------------------------------------------------------------
=> MISCELLANEOUS
Universal argument .... ^U Set mark .............. Meta Space
Clear and redraw ...... ^L Exchange point and mark ^X ^X
Redraw display ........ Meta ^L
Execute named command . Meta X Insert string ......... not bound
Execute command line .. not bound Overwrite string ...... not bound
Set encryption key .... Meta E Wrap word ............. not bound
Count words ........... Meta ^C Update screen ......... not bound
-------------------------------------------------------------------------------
=> SYSTEM VARIABLES
Set ................... Meta ^A Current buffer name ... $cbufname
Tabulator (4, 8)....... $tab Current file name ..... $cfname
Screen resolution ..... $sres :: NORMAL, CGA, EGA, VGA
Display commands ...... $discmd :: TRUE, FALSE
Scrolling enabled ..... $scroll :: TRUE, FALSE, can only be reset
Scrolling movement .... $jump :: # lines, default 1, 0 = 1/2 page
Page overlap .......... $overlap :: # lines, default 0, 0 = 1/3 page
-------------------------------------------------------------------------------
=> FUNCTIONS
&neg, &abs, &add, &sub, &tim, &div, &mod ... Arithmetic
&equ, &les, &gre ........................... Arithmetic comparisons
¬, &and, &or ............................ Logical
&lef s len, &rig s pos, &mid s pos len ..... Substring
&cat, &len, &upp, &low, &asc, &chr ......... Other string operations
&seq, &sle, &sgr ........................... String comparisons
&sin ....................................... String index
-------------------------------------------------------------------------------
=> FILE NAME COMPLETION
File name completion can be used with all file commands (find-file,
view-file, ...) but it works only under UNIX and MS-DOS. It is invoked
by a <Space> or <Tab>. If there exist more than one possible completions
they are displayed one by one. If the file name contains wild card
characters, the name is expanded instead of simple completion. Special
characters can be entered verbatim by prefixing them with ^V (or ^Q).
-------------------------------------------------------------------------------