annotate etc/survival.tex @ 73024:704341de9fc7

(Window Start): Minor cleanups.
author Richard M. Stallman <rms@gnu.org>
date Wed, 20 Sep 2006 18:07:59 +0000
parents e8a3fb527b77
children b0994ad32966 c5406394f567
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 %&tex
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2 %
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 % Title: GNU Emacs Survival Card
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4 % Author: Wlodek Bzyl <matwb@univ.gda.pl>
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5 %
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 % $Revision: 1.8 $
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7 % $Date: 2000/05/05 22:00:48 $
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8 %
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9 %**start of header
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 % User interface is `plain.tex' and macros described below
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 %
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 % \title{CARD TITLE}{for version 21}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14 % \section{NAME}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 % optional paragraphs separated with \askip amount of vertical space
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 % \key{KEY-NAME} description of key or
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17 % \mkey{M-x LONG-LISP-NAME} description of Elisp function
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
18 %
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19 % \kbd{ARG} -- argument is typed literally
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 \def\plainfmtname{plain}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 \ifx\fmtname\plainfmtname
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 \else
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24 \errmessage{This file requires `plain' format to be typeset correctly}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25 \endinput
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
26 \fi
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27
68640
e8a3fb527b77 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 65088
diff changeset
28 % Copyright (C) 2000, 2002, 2003, 2004, 2005,
e8a3fb527b77 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 65088
diff changeset
29 % 2006 Free Software Foundation, Inc.
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31 % This file is part of GNU Emacs.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 % GNU Emacs is free software; you can redistribute it and/or modify
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34 % it under the terms of the GNU General Public License as published by
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
35 % the Free Software Foundation; either version 2, or (at your option)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 % any later version.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38 % GNU Emacs is distributed in the hope that it will be useful,
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39 % but WITHOUT ANY WARRANTY; without even the implied warranty of
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 % GNU General Public License for more details.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43 % You should have received a copy of the GNU General Public License
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 % along with GNU Emacs; see the file COPYING. If not, write to
64083
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
45 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
46 % Boston, MA 02110-1301, USA.
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48 \def\versionnumber{1.0}
68640
e8a3fb527b77 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 65088
diff changeset
49 \def\year{2006}
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51 \def\copyrightnotice{\penalty-1\vfill
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52 \vbox{\smallfont\baselineskip=0.8\baselineskip\raggedcenter
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 Copyright \year\ Free Software Foundation, Inc.\break
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 Version \versionnumber{} for GNU Emacs 21, April 2000\break
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 Project W{\l}odek Bzyl (matwb@univ.gda.pl)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57 Permission is granted to make and distribute copies of
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 this card provided the copyright notice and this permission notice
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59 are preserved on all copies.\par}}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61 \hsize 3.2in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 \vsize 7.95in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 \font\titlefont=cmss10 scaled 1200
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 \font\headingfont=cmss10
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 \font\smallfont=cmr6
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 \font\smallsy=cmsy6
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 \font\eightrm=cmr8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 \font\eightbf=cmbx8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 \font\eightit=cmti8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 \font\eighttt=cmtt8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 \font\eightmi=cmmi8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 \font\eightsy=cmsy8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73 \font\eightss=cmss8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 \textfont0=\eightrm
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75 \textfont1=\eightmi
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 \textfont2=\eightsy
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77 \def\rm{\eightrm} \rm
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78 \def\bf{\eightbf}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 \def\it{\eightit}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 \def\tt{\eighttt}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81 \def\ss{\eightss}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 \baselineskip=0.8\baselineskip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
83
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84 \newdimen\intercolumnskip % horizontal space between columns
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85 \intercolumnskip=0.5in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87 % The TeXbook, p. 257
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 \let\lr=L \newbox\leftcolumn
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
89 \output={\if L\lr
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90 \global\setbox\leftcolumn\columnbox \global\let\lr=R
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 \else
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92 \doubleformat \global\let\lr=L\fi}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93 \def\doubleformat{\shipout\vbox{\makeheadline
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94 \leftline{\box\leftcolumn\hskip\intercolumnskip\columnbox}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95 \makefootline}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 \advancepageno}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97 \def\columnbox{\leftline{\pagebody}}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99 \def\newcolumn{\vfil\eject}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
100
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
101 \def\bye{\par\vfil\supereject
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
102 \if R\lr \null\vfil\eject\fi
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
103 \end}
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
104
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
105 \outer\def\title#1#2{{\titlefont\centerline{#1}}\vskip 1ex plus 0.5ex
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
106 \centerline{\ss#2}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
107 \vskip2\baselineskip}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
108
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
109 \outer\def\section#1{\filbreak
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
110 \bskip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
111 \leftline{\headingfont #1}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
112 \askip}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
113 \def\bskip{\vskip 2.5ex plus 0.25ex }
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
114 \def\askip{\vskip 0.75ex plus 0.25ex}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
115
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
116 \newdimen\defwidth \defwidth=0.25\hsize
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
117 \def\hang{\hangindent\defwidth}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
118
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
119 \def\textindent#1{\noindent\llap{\hbox to \defwidth{\tt#1\hfil}}\ignorespaces}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
120 \def\key{\par\hangafter=0\hang\textindent}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
121
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
122 \def\mtextindent#1{\noindent\hbox{\tt#1\quad}\ignorespaces}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
123 \def\mkey{\par\hangafter=1\hang\mtextindent}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
124
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
125 \def\kbd#{\bgroup\tt \let\next= }
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127 \newdimen\raggedstretch
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128 \newskip\raggedparfill \raggedparfill=0pt plus 1fil
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
129 \def\nohyphens
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
130 {\hyphenpenalty10000\exhyphenpenalty10000\pretolerance10000}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
131 \def\raggedspaces
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
132 {\spaceskip=0.3333em\relax
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
133 \xspaceskip=0.5em\relax}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
134 \def\raggedright
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
135 {\raggedstretch=6em
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
136 \nohyphens
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
137 \rightskip=0pt plus \raggedstretch
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
138 \raggedspaces
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
139 \parfillskip=\raggedparfill
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
140 \relax}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
141 \def\raggedcenter
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142 {\raggedstretch=6em
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 \nohyphens
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144 \rightskip=0pt plus \raggedstretch
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145 \leftskip=\rightskip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
146 \raggedspaces
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
147 \parfillskip=0pt
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
148 \relax}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
149
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
150 \chardef\\=`\\
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
152 \raggedright
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
153 \nopagenumbers
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
154 \parindent 0pt
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
155 \interlinepenalty=10000
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
156 \hoffset -0.2in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
157 %\voffset 0.2in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
158
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
159 %**end of header
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
160
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
161
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
162 \title{GNU\ \ Emacs\ \ Survival\ \ Card}{for version 21}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
163
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
164 In the following, \kbd{C-z} means hit the `\kbd{z}' key while
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
165 holding down the {\it Ctrl}\ \ key. \kbd{M-z} means hit the
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
166 `\kbd{z}' key while hitting the {\it Meta\/} (labeled {\it Alt\/}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
167 on some keyboards) or after hitting {\it Esc\/} key.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
168
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
169 \section{Running Emacs}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
170
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
171 To enter GNU Emacs, just type its name: \kbd{emacs}.
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
172 Emacs divides the frame into several areas:
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
173 menu line,
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
174 buffer area with the edited text,
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
175 mode line describing the buffer in the window above it,
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
176 and a minibuffer/echo area in the last line.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
177 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
178 \key{C-x C-c} quit Emacs
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
179 \key{C-x C-f} edit file; this command uses the minibuffer to read
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
180 the file name; use this to create new files by entering the name
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
181 of the new file
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
182 \key{C-x C-s} save the file
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
183 \key{C-x k} kill a buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
184 \key{C-g} in most context: cancel, stop, abort partially typed or
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
185 executing command
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
186 \key{C-x u} undo
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
187
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
188 \section{Moving About}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
189
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
190 \key{C-l} scroll current line to center of window
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
191 \key{C-x b} switch to another buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
192 \key{M-<} move to beginning of buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
193 \key{M->} move to end of buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
194 \key{M-x goto-line} go to a given line number
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
195
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
196 \section{Multiple Windows}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
197
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
198 \key{C-x 0} remove the current window from the display
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
199 \key{C-x 1} make active window the only window
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
200 \key{C-x 2} split window horizontally
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
201 \key{C-x 3} split window vertically
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
202 \key{C-x o} move to other window
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
203
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
204 \section{Regions}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
205
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
206 Emacs defines a `region' as the space between the {\it mark\/} and
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
207 the {\it point}. A mark is set with \kbd{C-{\it space}}.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
208 The point is at the cursor position.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
209 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
210 \key{M-h} mark entire paragraph
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
211 \key{C-x h} mark entire buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
212
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
213 \section{Killing and Copying}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
214
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
215 \key{C-w} kill region
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
216 \key{M-w} copy region to kill-ring
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
217 \key{C-k} kill from the cursor all the way to the end of the line
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
218 \key{M-DEL} kill word
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
219 \key{C-y} yank back the last kill (\kbd{C-w C-y} combination could be
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
220 used to move text around)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
221 \key{M-y} replace last yank with previous kill
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
222
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
223 \section{Searching}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
224
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
225 \key{C-s} search for a string
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
226 \key{C-r} search for a string backwards
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
227 \key{RET} quit searching
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
228 \key{M-C-s} regular expression search
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
229 \key{M-C-r} reverse regular expression search
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
230 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
231 Use \kbd{C-s} or \kbd{C-r} again to repeat the search in either direction.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
232
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
233 \section{Tags}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
234
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
235 Tags tables files record locations of function and
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
236 procedure definitions, global variables, data types and anything
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
237 else convenient. To create a tags table file, type
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
238 `{\tt etags} {\it input\_files}' as a shell command.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
239 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
240 \key{M-.} find a definition
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
241 \key{C-u M-.} find next occurrence of definition
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
242 \key{M-*} pop back to where \kbd{M-.} was last invoked
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
243 \mkey{M-x tags-query-replace} run query-replace on all files
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
244 recorded in tags table
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
245 \key{M-,} continue last tags search or query-replace
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
246
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
247 \section{Compiling}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
248
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
249 \key{M-x compile} compile code in active window
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
250 \key{C-c C-c} go to the next compiler error, when in
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
251 the compile window or
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
252 \key{C-x `} when in the window with source code
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
253
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
254 \section{Dired, the Directory Editor}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
255
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
256 \key{C-x d} invoke Dired
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
257 \key{d} flag this file for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
258 \key{\~{}} flag all backup files for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
259 \key{u} remove deletion flag
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
260 \key{x} delete the files flagged for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
261 \key{C} copy file
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
262 \key{g} update the Dired buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
263 \key{f} visit the file described on the current line
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
264 \key{s} switch between alphabetical date/time order
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
265
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
266 \section{Reading and Sending Mail}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
267
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
268 \key{M-x rmail} start reading mail
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
269 \key{q} quit reading mail
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
270 \key{h} show headers
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
271 \key{d} mark the current message for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
272 \key{x} remove all messages marked for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
273
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
274 \key{C-x m} begin composing a message
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
275 \key{C-c C-c} send the message and switch to another buffer
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
276 \key{C-c C-f C-c} move to the `CC' header field, creating one
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
277 if there is none
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
278
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
279 \section{Miscellaneous}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
280
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
281 \key{M-q} fill paragraph
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
282 \key{M-/} expand previous word dynamically
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
283 \key{C-z} iconify (suspend) Emacs when running it under X or
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
284 shell, respectively
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
285 \mkey{M-x revert-buffer} replace the text being edited with the
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
286 text of the file on disk
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
287
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
288 \section{Query Replace}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
289
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
290 \key{M-\%} interactively search and replace
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
291 \key{M-C-\%} using regular expressions
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
292 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
293 Valid responses in query-replace mode are
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
294 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
295 \key{SPC} replace this one, go on to next
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
296 \key{,} replace this one, don't move
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
297 \key{DEL} skip to next without replacing
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
298 \key{!} replace all remaining matches
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
299 \key{\^{}} back up to the previous match
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
300 \key{RET} exit query-replace
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
301 \key{C-r} enter recursive edit (\kbd{M-C-c} to exit)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
302
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
303 \section{Regular Expressions}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
304
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
305 \key{. {\rm(dot)}} any single character except a newline
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
306 \key{*} zero or more repeats
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
307 \key{+} one or more repeats
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
308 \key{?} zero or one repeat
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
309 \key{[$\ldots$]} denotes a class of character to match
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
310 \key{[\^{}$\ldots$]} negates the class
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
311
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
312 \key{\\{\it c}} quote characters otherwise having a special
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
313 meaning in regular expressions
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
314
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
315 \key{$\ldots$\\|$\ldots$\\|$\ldots$} matches one of
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
316 the alternatives (``or'')
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
317 \key{\\( $\ldots$ \\)} groups a series of pattern elements to
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
318 a single element
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
319 \key{\\{\it n}} same text as {\it n\/}th group
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
320
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
321 \key{\^{}} matches at line beginning
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
322 \key{\$} matches at line end
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
323
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
324 \key{\\w} matches word-syntax character
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
325 \key{\\W} matches non-word-syntax character
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
326 \key{\\<} matches at word beginning
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
327 \key{\\>} matches at word end
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
328 \key{\\b} matches at word break
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
329 \key{\\B} matches at non-word break
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
330
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
331 \section{Registers}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
332
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
333 \key{C-x r s} save region in register
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
334 \key{C-x r i} insert register contents into buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
335
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
336 \key{C-x r SPC} save value of point in register
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
337 \key{C-x r j} jump to point saved in register
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
338
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
339 \section{Rectangles}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
340
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
341 \key{C-x r r} copy rectangle to register
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
342 \key{C-x r k} kill rectangle
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
343 \key{C-x r y} yank rectangle
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
344 \key{C-x r t} prefix each line with a string
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
345
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
346 \key{C-x r o} open rectangle, shifting text right
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
347 \key{C-x r c} blank out rectangle
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
348
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
349 \section{Shells}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
350
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
351 \key{M-x shell} start a shell within Emacs
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
352 \key{M-!} execute a shell command
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
353 \key{M-|} run a shell command on the region
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
354 \key{C-u M-|} filter region through a shell command
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
355
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
356 \section{Spelling Check}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
357
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
358 \key{M-\$} check spelling of word at the cursor
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
359 \mkey{M-x ispell-region} check spelling of all words in region
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
360 \mkey{M-x ispell-buffer} check spelling of entire buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
361
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
362 \section{International Character Sets}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
363
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
364 \key{C-x RET C-\\} select and activate input method for
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
365 the current buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
366 \key{C-\\} enable or disable input method
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
367 \mkey{M-x list-input-methods} show all input methods
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
368 \mkey{M-x set-language-environment} specify principal language
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
369
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
370 \key{C-x RET c} set coding system for next command
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
371 \mkey{M-x find-file-literally} visit file with no conversion
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
372 of any kind
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
373
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
374 \mkey{M-x list-coding-systems} show all coding systems
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
375 \mkey{M-x prefer-coding-system} choose preferred coding system
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
376
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
377 \section{Keyboard Macros}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
378
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
379 \key{C-x (} start defining a keyboard macro
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
380 \key{C-x )} end keyboard macro definition
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
381 \key{C-x e} execute last-defined keyboard macro
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
382 \key{C-u C-x (} append to last keyboard macro
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
383 \mkey{M-x name-last-kbd-macro} name last keyboard macro
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
384
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
385 \section{Simple Customization}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
386
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
387 \key{M-x customize} customize variables and faces
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
388
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
389 \section{Getting Help}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
390
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
391 Emacs does command completion for you. Typing \kbd{M-x}
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
392 {\it tab\/} or {\it space\/} gives a list of Emacs commands.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
393 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
394 \key{C-h} Emacs help
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
395 \key{C-h t} run the Emacs tutorial
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
396 \key{C-h i} enter Info, the documentation browser
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
397 \key{C-h a} show commands matching a string (apropos)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
398 \key{C-h k} display documentation of the function invoked by
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
399 keystroke
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
400 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
401 Emacs gets into different {\it modes}, each of which customizes
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
402 Emacs for editing text of a particular sort. The mode line
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
403 contains names of the current modes, in parentheses.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
404 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
405 \key{C-h m} get mode-specific information
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
406
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
407 \copyrightnotice
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
408
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
409 \bye
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
410
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
411 % Local variables:
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
412 % compile-command: "tex survival"
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
413 % End:
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
414
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
415 % arch-tag: 4f9a0562-617b-4843-aee1-450c41d6b22c