comparison etc/refcard.tex @ 219:262b8bb4a523 r20-4b8

Import from CVS: tag r20-4b8
author cvs
date Mon, 13 Aug 2007 10:09:35 +0200
parents 376386a54a3c
children 0e522484dd2a
comparison
equal deleted inserted replaced
218:c9f226976f56 219:262b8bb4a523
261 261
262 To read in a file to edit, see Files, below. 262 To read in a file to edit, see Files, below.
263 263
264 \section{Leaving Emacs} 264 \section{Leaving Emacs}
265 265
266 \key{suspend Emacs (or iconify it under X)}{C-z} 266 \key{suspend Emacs (or iconify frame under X)}{C-z}
267 \key{exit Emacs permanently}{C-x C-c} 267 \key{exit Emacs permanently}{C-x C-c}
268 268
269 \section{Files} 269 \section{Files}
270 270
271 \key{{\bf read} a file into Emacs}{C-x C-f} 271 \key{{\bf read} a file into Emacs}{C-x C-f}
278 \section{Getting Help} 278 \section{Getting Help}
279 279
280 The Help system is simple. Type \kbd{C-h} and follow the directions. 280 The Help system is simple. Type \kbd{C-h} and follow the directions.
281 If you are a first-time user, type \kbd{C-h t} for a {\bf tutorial}. 281 If you are a first-time user, type \kbd{C-h t} for a {\bf tutorial}.
282 282
283 \key{remove Help window}{C-x 1} 283 \key{quit Help window}{q}
284 \key{scroll Help window}{ESC C-v} 284 \key{scroll Help window}{space}
285 285
286 \key{apropos: show commands matching a string}{C-h a} 286 \key{apropos: show commands matching a string}{C-h a}
287 \key{show the function a key runs}{C-h c} 287 \key{show the function a key runs}{C-h c}
288 \key{describe a function}{C-h f} 288 \key{describe a function}{C-h f}
289 \key{get mode-specific information}{C-h m} 289 \key{get mode-specific information}{C-h m}
290 290
291 \section{Error Recovery} 291 \section{Error Recovery}
292 292
293 \key{{\bf abort} partially typed or executing command}{C-g} 293 \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} 294 \metax{{\bf recover} a file lost by a system crash}{M-x recover-file}
295 \metax{{\bf recover} files from a previous Emacs session}{M-x recover-session}
295 \key{{\bf undo} an unwanted change}{C-x u {\rm or} C-_} 296 \key{{\bf undo} an unwanted change}{C-x u {\rm or} C-_}
296 \metax{restore a buffer to its original contents}{M-x revert-buffer} 297 \metax{restore a buffer to its original contents}{M-x revert-buffer}
297 \key{redraw garbaged screen}{C-l} 298 \key{redraw garbaged screen}{C-l}
298 299
299 \section{Incremental Search} 300 \section{Incremental Search}
371 \key{interactively replace a text string}{M-\%} 372 \key{interactively replace a text string}{M-\%}
372 \metax{using regular expressions}{M-x query-replace-regexp} 373 \metax{using regular expressions}{M-x query-replace-regexp}
373 374
374 Valid responses in query-replace mode are 375 Valid responses in query-replace mode are
375 376
376 \key{{\bf replace} this one, go on to next}{SPC} 377 \key{{\bf replace} this one, go on to next}{SPC {\rm or} y}
377 \key{replace this one, don't move}{,} 378 \key{replace this one, don't move}{,}
378 \key{{\bf skip} to next without replacing}{DEL} 379 \key{{\bf skip} to next without replacing}{DEL {\rm or} n}
379 \key{replace all remaining matches}{!} 380 \key{replace all remaining matches}{!}
380 \key{{\bf back up} to the previous match}{^} 381 \key{{\bf back up} to the previous match}{^}
381 \key{{\bf exit} query-replace}{ESC} 382 \key{{\bf exit} query-replace}{ESC}
382 \key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r} 383 \key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r}
384 \key{delete match and enter recursive edit}{C-w}
383 385
384 \section{Multiple Windows} 386 \section{Multiple Windows}
385 387
386 \key{delete all other windows}{C-x 1} 388 \key{delete all other windows}{C-x 1}
387 \key{delete this window}{C-x 0} 389 \key{delete this window}{C-x 0}
496 \key{kill rectangle}{C-x r k} 498 \key{kill rectangle}{C-x r k}
497 \key{yank rectangle}{C-x r y} 499 \key{yank rectangle}{C-x r y}
498 \key{open rectangle, shifting text right}{C-x r o} 500 \key{open rectangle, shifting text right}{C-x r o}
499 \metax{blank out rectangle}{M-x clear-rectangle} 501 \metax{blank out rectangle}{M-x clear-rectangle}
500 \metax{prefix each line with a string}{M-x string-rectangle} 502 \metax{prefix each line with a string}{M-x string-rectangle}
503 \key{select rectangle with mouse}{M-button1}
501 504
502 \section{Abbrevs} 505 \section{Abbrevs}
503 506
504 \key{add global abbrev}{C-x a g} 507 \key{add global abbrev}{C-x a g}
505 \key{add mode-local abbrev}{C-x a l} 508 \key{add mode-local abbrev}{C-x a l}
577 \section{Keyboard Macros} 580 \section{Keyboard Macros}
578 581
579 \key{{\bf start} defining a keyboard macro}{C-x (} 582 \key{{\bf start} defining a keyboard macro}{C-x (}
580 \key{{\bf end} keyboard macro definition}{C-x )} 583 \key{{\bf end} keyboard macro definition}{C-x )}
581 \key{{\bf execute} last-defined keyboard macro}{C-x e} 584 \key{{\bf execute} last-defined keyboard macro}{C-x e}
585 \key{{\bf edit} keyboard macro}{C-x C-k}
582 \key{append to last keyboard macro}{C-u C-x (} 586 \key{append to last keyboard macro}{C-u C-x (}
583 \metax{name last keyboard macro}{M-x name-last-kbd-macro} 587 \metax{name last keyboard macro}{M-x name-last-kbd-macro}
584 \metax{insert Lisp definition in buffer}{M-x insert-kbd-macro} 588 \metax{insert Lisp definition in buffer}{M-x insert-kbd-macro}
585 589
586 \section{Commands Dealing with Emacs Lisp} 590 \section{Commands Dealing with Emacs Lisp}