comparison etc/refcard.tex @ 90201:fbb2bea03df9

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-69 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 474-484) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 88-91) - Merge from emacs--cvs-trunk--0 - Update FSF's address in GPL notices - Update from CVS
author Miles Bader <miles@gnu.org>
date Thu, 14 Jul 2005 08:02:00 +0000
parents f9a65d7ebd29 0ee94ce27f45
children 2d92f5c9d6ae
comparison
equal deleted inserted replaced
90200:f9a65d7ebd29 90201:fbb2bea03df9
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 \newcount\letterpaper
5 5
6 % 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).
12 % only when columnsperpage is 2 or 3. 12 % only when columnsperpage is 2 or 3.
13 13
14 \letterpaper=1 14 \letterpaper=1
15 15
16 % Nothing else needs to be changed below this line. 16 % Nothing else needs to be changed below this line.
17 % Copyright (c) 1987, 1993, 1996, 1997 Free Software Foundation, Inc. 17 % Copyright (c) 1987, 1993, 1996, 1997, 2005 Free Software Foundation, Inc.
18 18
19 % This file is part of GNU Emacs. 19 % This file is part of GNU Emacs.
20 20
21 % GNU Emacs is free software; you can redistribute it and/or modify 21 % GNU Emacs is free software; you can redistribute it and/or modify
22 % it under the terms of the GNU General Public License as published by 22 % it under the terms of the GNU General Public License as published by
60 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik 60 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
61 % for their many good ideas. 61 % for their many good ideas.
62 62
63 % If there were room, it would be nice to see a section on Dired. 63 % If there were room, it would be nice to see a section on Dired.
64 64
65 \def\versionnumber{2.2} 65 \def\versionnumber{2.3}
66 \def\year{1997} 66 \def\year{2005}
67 67
68 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill 68 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
69 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc. 69 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
70 Permissions on back. v\versionnumber}} 70 Permissions on back. v\versionnumber}}
71 71
72 \def\copyrightnotice{ 72 \def\copyrightnotice{
73 \vskip 1ex plus 2 fill\begingroup\small 73 \vskip 1ex plus 2 fill\begingroup\small
74 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.} 74 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
75 \centerline{v\versionnumber{} for GNU Emacs version 21, \year} 75 \centerline{v\versionnumber{} for GNU Emacs version 22, \year}
76 \centerline{designed by Stephen Gildea} 76 \centerline{designed by Stephen Gildea}
77 77
78 Permission is granted to make and distribute copies of 78 Permission is granted to make and distribute copies of
79 this card provided the copyright notice and this permission notice 79 this card provided the copyright notice and this permission notice
80 are preserved on all copies. 80 are preserved on all copies.
268 %**end of header 268 %**end of header
269 269
270 270
271 \title{GNU Emacs Reference Card} 271 \title{GNU Emacs Reference Card}
272 272
273 \centerline{(for version 21)} 273 \centerline{(for version 22)}
274 274
275 \section{Starting Emacs} 275 \section{Starting Emacs}
276 276
277 To enter GNU Emacs 21, just type its name: \kbd{emacs} 277 To enter GNU Emacs 22, just type its name: \kbd{emacs}
278
279 To read in a file to edit, see Files, below.
280 278
281 \section{Leaving Emacs} 279 \section{Leaving Emacs}
282 280
283 \key{suspend Emacs (or iconify it under X)}{C-z} 281 \key{suspend Emacs (or iconify it under X)}{C-z}
284 \key{exit Emacs permanently}{C-x C-c} 282 \key{exit Emacs permanently}{C-x C-c}
289 \key{{\bf save} a file back to disk}{C-x C-s} 287 \key{{\bf save} a file back to disk}{C-x C-s}
290 \key{save {\bf all} files}{C-x s} 288 \key{save {\bf all} files}{C-x s}
291 \key{{\bf insert} contents of another file into this buffer}{C-x i} 289 \key{{\bf insert} contents of another file into this buffer}{C-x i}
292 \key{replace this file with the file you really want}{C-x C-v} 290 \key{replace this file with the file you really want}{C-x C-v}
293 \key{write buffer to a specified file}{C-x C-w} 291 \key{write buffer to a specified file}{C-x C-w}
294 \key{version control checkin/checkout}{C-x C-q} 292 \key{toggle read-only status of buffer}{C-x C-q}
295 293
296 \section{Getting Help} 294 \section{Getting Help}
297 295
298 The help system is simple. Type \kbd{C-h} (or \kbd{F1}) and follow 296 The help system is simple. Type \kbd{C-h} (or \kbd{F1}) and follow
299 the directions. If you are a first-time user, type \kbd{C-h t} for a 297 the directions. If you are a first-time user, type \kbd{C-h t} for a
301 299
302 \key{remove help window}{C-x 1} 300 \key{remove help window}{C-x 1}
303 \key{scroll help window}{C-M-v} 301 \key{scroll help window}{C-M-v}
304 302
305 \key{apropos: show commands matching a string}{C-h a} 303 \key{apropos: show commands matching a string}{C-h a}
306 \key{show the function a key runs}{C-h c} 304 \key{describe the function a key runs}{C-h k}
307 \key{describe a function}{C-h f} 305 \key{describe a function}{C-h f}
308 \key{get mode-specific information}{C-h m} 306 \key{get mode-specific information}{C-h m}
309 307
310 \section{Error Recovery} 308 \section{Error Recovery}
311 309
312 \key{{\bf abort} partially typed or executing command}{C-g} 310 \key{{\bf abort} partially typed or executing command}{C-g}
313 \metax{{\bf recover} a file lost by a system crash}{M-x recover-file} 311 \metax{{\bf recover} files lost by a system crash}{M-x recover-session}
314 \metax{{\bf undo} an unwanted change}{C-x u, C-_ {\rm or} C-/} 312 \metax{{\bf undo} an unwanted change}{C-x u, C-_ {\rm or} C-/}
315 \metax{restore a buffer to its original contents}{M-x revert-buffer} 313 \metax{restore a buffer to its original contents}{M-x revert-buffer}
316 \key{redraw garbaged screen}{C-l} 314 \key{redraw garbaged screen}{C-l}
317 315
318 \section{Incremental Search} 316 \section{Incremental Search}
386 \key{mark entire {\bf buffer}}{C-x h} 384 \key{mark entire {\bf buffer}}{C-x h}
387 385
388 \section{Query Replace} 386 \section{Query Replace}
389 387
390 \key{interactively replace a text string}{M-\%} 388 \key{interactively replace a text string}{M-\%}
389 % query-replace-regexp is bound to C-M-% but that can't be typed on
390 % consoles.
391 \metax{using regular expressions}{M-x query-replace-regexp} 391 \metax{using regular expressions}{M-x query-replace-regexp}
392 392
393 Valid responses in query-replace mode are 393 Valid responses in query-replace mode are
394 394
395 \key{{\bf replace} this one, go on to next}{SPC} 395 \key{{\bf replace} this one, go on to next}{SPC}
400 \key{{\bf exit} query-replace}{RET} 400 \key{{\bf exit} query-replace}{RET}
401 \key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r} 401 \key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r}
402 402
403 \section{Multiple Windows} 403 \section{Multiple Windows}
404 404
405 When two commands are shown, the second is for ``other frame.'' 405 When two commands are shown, the second is a similar command for a
406 406 frame instead of a window.
407 \key{delete all other windows}{C-x 1}
408 407
409 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0 408 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0
410 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr 409 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
410 \threecol{delete all other windows}{C-x 1\ \ \ \ }{C-x 5 1}
411 \threecol{split window, above and below}{C-x 2\ \ \ \ }{C-x 5 2} 411 \threecol{split window, above and below}{C-x 2\ \ \ \ }{C-x 5 2}
412 \threecol{delete this window}{C-x 0\ \ \ \ }{C-x 5 0} 412 \threecol{delete this window}{C-x 0\ \ \ \ }{C-x 5 0}
413 }} 413 }}
414 \key{split window, side by side}{C-x 3} 414 \key{split window, side by side}{C-x 3}
415 415
447 447
448 \key{fill paragraph}{M-q} 448 \key{fill paragraph}{M-q}
449 \key{set fill column}{C-x f} 449 \key{set fill column}{C-x f}
450 \key{set prefix each line starts with}{C-x .} 450 \key{set prefix each line starts with}{C-x .}
451 451
452 \key{set face}{M-g} 452 \key{set face}{M-o}
453 453
454 \section{Case Change} 454 \section{Case Change}
455 455
456 \key{uppercase word}{M-u} 456 \key{uppercase word}{M-u}
457 \key{lowercase word}{M-l} 457 \key{lowercase word}{M-l}
560 \threecol{character with syntax {\it c}}{\\s{\it c}}{\\S{\it c}} 560 \threecol{character with syntax {\it c}}{\\s{\it c}}{\\S{\it c}}
561 } 561 }
562 562
563 \section{International Character Sets} 563 \section{International Character Sets}
564 564
565 \metax{specify principal language}{M-x set-language-environment} 565 \key{specify principal language}{C-x RET l}
566 \metax{show all input methods}{M-x list-input-methods} 566 \metax{show all input methods}{M-x list-input-methods}
567 \key{enable or disable input method}{C-\\} 567 \key{enable or disable input method}{C-\\}
568 \key{set coding system for next command}{C-x RET c} 568 \key{set coding system for next command}{C-x RET c}
569 \metax{show all coding systems}{M-x list-coding-systems} 569 \metax{show all coding systems}{M-x list-coding-systems}
570 \metax{choose preferred coding system}{M-x prefer-coding-system} 570 \metax{choose preferred coding system}{M-x prefer-coding-system}
571 571
572 \section{Info} 572 \section{Info}
573 573
574 \key{enter the Info documentation reader}{C-h i} 574 \key{enter the Info documentation reader}{C-h i}
575 \key{find specified function or variable in Info}{C-h C-i} 575 \key{find specified function or variable in Info}{C-h S}
576 \beginindentedkeys 576 \beginindentedkeys
577 577
578 Moving within a node: 578 Moving within a node:
579 579
580 \key{scroll forward}{SPC} 580 \key{scroll forward}{SPC}
589 \key{select menu item by name}{m} 589 \key{select menu item by name}{m}
590 \key{select {\it n\/}th menu item by number (1--9)}{{\it n}} 590 \key{select {\it n\/}th menu item by number (1--9)}{{\it n}}
591 \key{follow cross reference (return with \kbd{l})}{f} 591 \key{follow cross reference (return with \kbd{l})}{f}
592 \key{return to last node you saw}{l} 592 \key{return to last node you saw}{l}
593 \key{return to directory node}{d} 593 \key{return to directory node}{d}
594 \key{go to top node of Info file}{t}
594 \key{go to any node by name}{g} 595 \key{go to any node by name}{g}
595 596
596 Other: 597 Other:
597 598
598 \key{run Info {\bf tutorial}}{h} 599 \key{run Info {\bf tutorial}}{h}