annotate etc/refcards/survival.tex @ 100972:c90853557b90

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