comparison etc/refcard.tex @ 88155:d7ddb3e565de

sync with trunk
author Henrik Enberg <henrik.enberg@telia.com>
date Mon, 16 Jan 2006 00:03:54 +0000
parents 23a1cea22d13
children
comparison
equal deleted inserted replaced
88154:8ce476d3ba36 88155:d7ddb3e565de
1 % Reference Card for GNU Emacs version 21 on Unix systems 1 % Reference Card for GNU Emacs version 22 on Unix systems
2 %**start of header 2 %**start of header
3 \newcount\columnsperpage 3 \newcount\columnsperpage
4 \newcount\letterpaper
4 5
5 % This file can be printed with 1, 2, or 3 columns per page (see below). 6 % This file can be printed with 1, 2, or 3 columns per page (see below).
6 % Specify how many you want here. Nothing else needs to be changed. 7 % Specify how many you want here.
7 8
8 \columnsperpage=1 9 \columnsperpage=3
9 10
10 % Copyright (c) 1987, 1993, 1996, 1997 Free Software Foundation, Inc. 11 % Set letterpapaer to 0 for A4 paper, 1 for letter (US) paper. Useful
12 % only when columnsperpage is 2 or 3.
13
14 \letterpaper=1
15
16 % Nothing else needs to be changed below this line.
17 % Copyright (C) 1987, 1993, 1996, 1997, 2002, 2003, 2004,
18 % 2005 Free Software Foundation, Inc.
11 19
12 % This file is part of GNU Emacs. 20 % This file is part of GNU Emacs.
13 21
14 % GNU Emacs is free software; you can redistribute it and/or modify 22 % GNU Emacs is free software; you can redistribute it and/or modify
15 % it under the terms of the GNU General Public License as published by 23 % it under the terms of the GNU General Public License as published by
21 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 29 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 % GNU General Public License for more details. 30 % GNU General Public License for more details.
23 31
24 % You should have received a copy of the GNU General Public License 32 % You should have received a copy of the GNU General Public License
25 % along with GNU Emacs; see the file COPYING. If not, write to 33 % along with GNU Emacs; see the file COPYING. If not, write to
26 % the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 34 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27 % Boston, MA 02111-1307, USA. 35 % Boston, MA 02110-1301, USA.
28 36
29 % This file is intended to be processed by plain TeX (TeX82). 37 % This file is intended to be processed by plain TeX (TeX82).
30 % 38 %
31 % The final reference card has six columns, three on each side. 39 % The final reference card has six columns, three on each side.
32 % This file can be used to produce it in any of three ways: 40 % This file can be used to produce it in any of three ways:
40 % produces two pages which must be printed sideways to make a 48 % produces two pages which must be printed sideways to make a
41 % ready-to-use 8.5 x 11 inch reference card. 49 % ready-to-use 8.5 x 11 inch reference card.
42 % For this you need a dvi device driver that can print sideways. 50 % For this you need a dvi device driver that can print sideways.
43 % Which mode to use is controlled by setting \columnsperpage above. 51 % Which mode to use is controlled by setting \columnsperpage above.
44 % 52 %
53 % To compile and print this document:
54 % tex refcard.tex
55 % dvips -t landscape refcard.dvi
56 %
45 % Author: 57 % Author:
46 % Stephen Gildea 58 % Stephen Gildea
47 % Internet: gildea@stop.mail-abuse.org 59 % Internet: gildea@stop.mail-abuse.org
48 % 60 %
49 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik 61 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
50 % for their many good ideas. 62 % for their many good ideas.
51 63
52 % If there were room, it would be nice to see a section on Dired. 64 % If there were room, it would be nice to see a section on Dired.
53 65
54 \def\versionnumber{2.2} 66 \def\versionnumber{2.3}
55 \def\year{1997} 67 \def\year{2005}
56 68
57 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill 69 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
58 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc. 70 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
59 Permissions on back. v\versionnumber}} 71 Permissions on back. v\versionnumber}}
60 72
61 \def\copyrightnotice{ 73 \def\copyrightnotice{
62 \vskip 1ex plus 2 fill\begingroup\small 74 \vskip 1ex plus 2 fill\begingroup\small
63 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.} 75 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
64 \centerline{v\versionnumber{} for GNU Emacs version 21, \year} 76 \centerline{v\versionnumber{} for GNU Emacs version 22, \year}
65 \centerline{designed by Stephen Gildea} 77 \centerline{designed by Stephen Gildea}
66 78
67 Permission is granted to make and distribute copies of 79 Permission is granted to make and distribute copies of
68 this card provided the copyright notice and this permission notice 80 this card provided the copyright notice and this permission notice
69 are preserved on all copies. 81 are preserved on all copies.
70 82
71 For copies of the GNU Emacs manual, write to the Free Software 83 For copies of the GNU Emacs manual, write to the Free Software
72 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 84 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
73 85
74 \endgroup} 86 \endgroup}
75 87
76 % make \bye not \outer so that the \def\bye in the \else clause below 88 % make \bye not \outer so that the \def\bye in the \else clause below
77 % can be scanned without complaint. 89 % can be scanned without complaint.
101 113
102 \footline{\hss\folio} 114 \footline{\hss\folio}
103 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}} 115 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
104 \else %2 or 3 columns uses prereduced size 116 \else %2 or 3 columns uses prereduced size
105 \hsize 3.2in 117 \hsize 3.2in
106 \vsize 7.95in 118 \if 1\the\letterpaper
119 \vsize 7.95in
120 \else
121 \vsize 7.65in
122 \fi
107 \hoffset -.75in 123 \hoffset -.75in
108 \voffset -.745in 124 \voffset -.745in
109 \font\titlefont=cmbx10 \scaledmag2 125 \font\titlefont=cmbx10 \scaledmag2
110 \font\headingfont=cmbx10 \scaledmag1 126 \font\headingfont=cmbx10 \scaledmag1
111 \font\smallfont=cmr6 127 \font\smallfont=cmr6
121 \textfont2=\eightsy 137 \textfont2=\eightsy
122 \def\rm{\eightrm} 138 \def\rm{\eightrm}
123 \def\bf{\eightbf} 139 \def\bf{\eightbf}
124 \def\it{\eightit} 140 \def\it{\eightit}
125 \def\tt{\eighttt} 141 \def\tt{\eighttt}
126 \normalbaselineskip=.8\normalbaselineskip 142 \if 1\the\letterpaper
143 \normalbaselineskip=.8\normalbaselineskip
144 \else
145 \normalbaselineskip=.7\normalbaselineskip
146 \fi
127 \normallineskip=.8\normallineskip 147 \normallineskip=.8\normallineskip
128 \normallineskiplimit=.8\normallineskiplimit 148 \normallineskiplimit=.8\normallineskiplimit
129 \normalbaselines\rm %make definitions take effect 149 \normalbaselines\rm %make definitions take effect
130 150
131 \if 2\ncolumns 151 \if 2\ncolumns
249 %**end of header 269 %**end of header
250 270
251 271
252 \title{GNU Emacs Reference Card} 272 \title{GNU Emacs Reference Card}
253 273
254 \centerline{(for version 21)} 274 \centerline{(for version 22)}
255 275
256 \section{Starting Emacs} 276 \section{Starting Emacs}
257 277
258 To enter GNU Emacs 21, just type its name: \kbd{emacs} 278 To enter GNU Emacs 22, just type its name: \kbd{emacs}
259
260 To read in a file to edit, see Files, below.
261 279
262 \section{Leaving Emacs} 280 \section{Leaving Emacs}
263 281
264 \key{suspend Emacs (or iconify it under X)}{C-z} 282 \key{suspend Emacs (or iconify it under X)}{C-z}
265 \key{exit Emacs permanently}{C-x C-c} 283 \key{exit Emacs permanently}{C-x C-c}
270 \key{{\bf save} a file back to disk}{C-x C-s} 288 \key{{\bf save} a file back to disk}{C-x C-s}
271 \key{save {\bf all} files}{C-x s} 289 \key{save {\bf all} files}{C-x s}
272 \key{{\bf insert} contents of another file into this buffer}{C-x i} 290 \key{{\bf insert} contents of another file into this buffer}{C-x i}
273 \key{replace this file with the file you really want}{C-x C-v} 291 \key{replace this file with the file you really want}{C-x C-v}
274 \key{write buffer to a specified file}{C-x C-w} 292 \key{write buffer to a specified file}{C-x C-w}
275 \key{version control checkin/checkout}{C-x C-q} 293 \key{toggle read-only status of buffer}{C-x C-q}
276 294
277 \section{Getting Help} 295 \section{Getting Help}
278 296
279 The help system is simple. Type \kbd{C-h} (or \kbd{F1}) and follow 297 The help system is simple. Type \kbd{C-h} (or \kbd{F1}) and follow
280 the directions. If you are a first-time user, type \kbd{C-h t} for a 298 the directions. If you are a first-time user, type \kbd{C-h t} for a
282 300
283 \key{remove help window}{C-x 1} 301 \key{remove help window}{C-x 1}
284 \key{scroll help window}{C-M-v} 302 \key{scroll help window}{C-M-v}
285 303
286 \key{apropos: show commands matching a string}{C-h a} 304 \key{apropos: show commands matching a string}{C-h a}
287 \key{show the function a key runs}{C-h c} 305 \key{describe the function a key runs}{C-h k}
288 \key{describe a function}{C-h f} 306 \key{describe a function}{C-h f}
289 \key{get mode-specific information}{C-h m} 307 \key{get mode-specific information}{C-h m}
290 308
291 \section{Error Recovery} 309 \section{Error Recovery}
292 310
293 \key{{\bf abort} partially typed or executing command}{C-g} 311 \key{{\bf abort} partially typed or executing command}{C-g}
294 \metax{{\bf recover} a file lost by a system crash}{M-x recover-file} 312 \metax{{\bf recover} files lost by a system crash}{M-x recover-session}
295 \key{{\bf undo} an unwanted change}{C-x u {\rm or} C-_} 313 \metax{{\bf undo} an unwanted change}{C-x u, C-_ {\rm or} C-/}
296 \metax{restore a buffer to its original contents}{M-x revert-buffer} 314 \metax{restore a buffer to its original contents}{M-x revert-buffer}
297 \key{redraw garbaged screen}{C-l} 315 \key{redraw garbaged screen}{C-l}
298 316
299 \section{Incremental Search} 317 \section{Incremental Search}
300 318
367 \key{mark entire {\bf buffer}}{C-x h} 385 \key{mark entire {\bf buffer}}{C-x h}
368 386
369 \section{Query Replace} 387 \section{Query Replace}
370 388
371 \key{interactively replace a text string}{M-\%} 389 \key{interactively replace a text string}{M-\%}
390 % query-replace-regexp is bound to C-M-% but that can't be typed on
391 % consoles.
372 \metax{using regular expressions}{M-x query-replace-regexp} 392 \metax{using regular expressions}{M-x query-replace-regexp}
373 393
374 Valid responses in query-replace mode are 394 Valid responses in query-replace mode are
375 395
376 \key{{\bf replace} this one, go on to next}{SPC} 396 \key{{\bf replace} this one, go on to next}{SPC}
381 \key{{\bf exit} query-replace}{RET} 401 \key{{\bf exit} query-replace}{RET}
382 \key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r} 402 \key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r}
383 403
384 \section{Multiple Windows} 404 \section{Multiple Windows}
385 405
386 When two commands are shown, the second is for ``other frame.'' 406 When two commands are shown, the second is a similar command for a
387 407 frame instead of a window.
388 \key{delete all other windows}{C-x 1}
389 408
390 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0 409 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0
391 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr 410 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
411 \threecol{delete all other windows}{C-x 1\ \ \ \ }{C-x 5 1}
392 \threecol{split window, above and below}{C-x 2\ \ \ \ }{C-x 5 2} 412 \threecol{split window, above and below}{C-x 2\ \ \ \ }{C-x 5 2}
393 \threecol{delete this window}{C-x 0\ \ \ \ }{C-x 5 0} 413 \threecol{delete this window}{C-x 0\ \ \ \ }{C-x 5 0}
394 }} 414 }}
395 \key{split window, side by side}{C-x 3} 415 \key{split window, side by side}{C-x 3}
396 416
428 448
429 \key{fill paragraph}{M-q} 449 \key{fill paragraph}{M-q}
430 \key{set fill column}{C-x f} 450 \key{set fill column}{C-x f}
431 \key{set prefix each line starts with}{C-x .} 451 \key{set prefix each line starts with}{C-x .}
432 452
433 \key{set face}{M-g} 453 \key{set face}{M-o}
434 454
435 \section{Case Change} 455 \section{Case Change}
436 456
437 \key{uppercase word}{M-u} 457 \key{uppercase word}{M-u}
438 \key{lowercase word}{M-l} 458 \key{lowercase word}{M-l}
541 \threecol{character with syntax {\it c}}{\\s{\it c}}{\\S{\it c}} 561 \threecol{character with syntax {\it c}}{\\s{\it c}}{\\S{\it c}}
542 } 562 }
543 563
544 \section{International Character Sets} 564 \section{International Character Sets}
545 565
546 \metax{specify principal language}{M-x set-language-environment} 566 \key{specify principal language}{C-x RET l}
547 \metax{show all input methods}{M-x list-input-methods} 567 \metax{show all input methods}{M-x list-input-methods}
548 \key{enable or disable input method}{C-\\} 568 \key{enable or disable input method}{C-\\}
549 \key{set coding system for next command}{C-x RET c} 569 \key{set coding system for next command}{C-x RET c}
550 \metax{show all coding systems}{M-x list-coding-systems} 570 \metax{show all coding systems}{M-x list-coding-systems}
551 \metax{choose preferred coding system}{M-x prefer-coding-system} 571 \metax{choose preferred coding system}{M-x prefer-coding-system}
552 572
553 \section{Info} 573 \section{Info}
554 574
555 \key{enter the Info documentation reader}{C-h i} 575 \key{enter the Info documentation reader}{C-h i}
556 \key{find specified function or variable in Info}{C-h C-i} 576 \key{find specified function or variable in Info}{C-h S}
557 \beginindentedkeys 577 \beginindentedkeys
558 578
559 Moving within a node: 579 Moving within a node:
560 580
561 \key{scroll forward}{SPC} 581 \key{scroll forward}{SPC}
570 \key{select menu item by name}{m} 590 \key{select menu item by name}{m}
571 \key{select {\it n\/}th menu item by number (1--9)}{{\it n}} 591 \key{select {\it n\/}th menu item by number (1--9)}{{\it n}}
572 \key{follow cross reference (return with \kbd{l})}{f} 592 \key{follow cross reference (return with \kbd{l})}{f}
573 \key{return to last node you saw}{l} 593 \key{return to last node you saw}{l}
574 \key{return to directory node}{d} 594 \key{return to directory node}{d}
595 \key{go to top node of Info file}{t}
575 \key{go to any node by name}{g} 596 \key{go to any node by name}{g}
576 597
577 Other: 598 Other:
578 599
579 \key{run Info {\bf tutorial}}{h} 600 \key{run Info {\bf tutorial}}{h}
649 \bye 670 \bye
650 671
651 % Local variables: 672 % Local variables:
652 % compile-command: "tex refcard" 673 % compile-command: "tex refcard"
653 % End: 674 % End:
675
676 % arch-tag: d67bdf5d-b77c-44eb-a22e-f4f7d25174d2