]> code.delx.au - gnu-emacs/blob - etc/refcards/pt-br-refcard.tex
31764f3f1895e2344ca25eccd479696ef370208e
[gnu-emacs] / etc / refcards / pt-br-refcard.tex
1 % Reference Card for GNU Emacs version 22 on Unix systems
2 %**start of header
3 \newcount\columnsperpage
4 \newcount\letterpaper
5
6 % This file can be printed with 1, 2, or 3 columns per page (see below).
7 % Specify how many you want here.
8
9 \columnsperpage=3
10
11 % Set letterpaper to 0 for A4 paper, 1 for letter (US) paper. Useful
12 % only when columnsperpage is 2 or 3.
13
14 \letterpaper=0
15
16 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
17 % a landscape layout.
18
19 \input pdflayout.sty
20 \pdflayout=(0l)
21
22 % Nothing else needs to be changed below this line.
23 % Copyright (C) 1987, 1993, 1996, 1997, 2002, 2003, 2004,
24 % 2006, 2007, 2008 Free Software Foundation, Inc.
25
26 % This file is part of GNU Emacs.
27
28 % GNU Emacs is free software: you can redistribute it and/or modify
29 % it under the terms of the GNU General Public License as published by
30 % the Free Software Foundation, either version 3 of the License, or
31 % (at your option) any later version.
32
33 % GNU Emacs is distributed in the hope that it will be useful,
34 % but WITHOUT ANY WARRANTY; without even the implied warranty of
35 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 % GNU General Public License for more details.
37
38 % You should have received a copy of the GNU General Public License
39 % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
40
41 % This file is intended to be processed by plain TeX (TeX82).
42 %
43 % The final reference card has six columns, three on each side.
44 % This file can be used to produce it in any of three ways:
45 % 1 column per page
46 % produces six separate pages, each of which needs to be reduced to 80%.
47 % This gives the best resolution.
48 % 2 columns per page
49 % produces three already-reduced pages.
50 % You will still need to cut and paste.
51 % 3 columns per page
52 % produces two pages which must be printed sideways to make a
53 % ready-to-use 8.5 x 11 inch reference card.
54 % For this you need a dvi device driver that can print sideways.
55 % Which mode to use is controlled by setting \columnsperpage above.
56 %
57 % To compile and print this document:
58 % tex refcard.tex
59 % dvips -t landscape refcard.dvi
60 %
61 % Author:
62 % Stephen Gildea
63 % Internet: gildea@stop.mail-abuse.org
64 %
65 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
66 % for their many good ideas.
67
68 % If there were room, it would be nice to see a section on Dired.
69
70 % Translated from English to Portuguese by Rodrigo Real, send comments
71 % and suggestions to rreal@ucpel.tche.br. Thanks to Mario Goulart for
72 % the opinions.
73
74
75 \def\versionnumber{2.3}
76 \def\versionyear{2006} % latest update
77 \def\versionemacs{22}
78 \def\year{2008} % latest copyright year
79
80 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
81 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
82 Permissions on back. v\versionnumber}}
83
84 \def\copyrightnotice{
85 \vskip 1ex plus 2 fill\begingroup\small
86 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
87 \centerline{v\versionnumber{} for GNU Emacs version \versionemacs, \versionyear}
88 \centerline{designed by Stephen Gildea}
89
90 Permission is granted to make and distribute copies of
91 this card provided the copyright notice and this permission notice
92 are preserved on all copies.
93
94 For copies of the GNU Emacs manual, write to the Free Software
95 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
96
97 \endgroup}
98
99 % make \bye not \outer so that the \def\bye in the \else clause below
100 % can be scanned without complaint.
101 \def\bye{\par\vfill\supereject\end}
102
103 \newdimen\intercolumnskip %horizontal space between columns
104 \newbox\columna %boxes to hold columns already built
105 \newbox\columnb
106
107 \def\ncolumns{\the\columnsperpage}
108
109 \message{[\ncolumns\space
110 column\if 1\ncolumns\else s\fi\space per page]}
111
112 \def\scaledmag#1{ scaled \magstep #1}
113
114 % This multi-way format was designed by Stephen Gildea October 1986.
115 % Note that the 1-column format is fontfamily-independent.
116 \if 1\ncolumns %one-column format uses normal size
117 \hsize 4in
118 \vsize 10in
119 \voffset -.7in
120 \font\titlefont=\fontname\tenbf \scaledmag3
121 \font\headingfont=\fontname\tenbf \scaledmag2
122 \font\smallfont=\fontname\sevenrm
123 \font\smallsy=\fontname\sevensy
124
125 \footline{\hss\folio}
126 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
127 \else %2 or 3 columns uses prereduced size
128 \hsize 3.2in
129 \if 1\the\letterpaper
130 \vsize 7.95in
131 \else
132 \vsize 7.65in
133 \fi
134 \hoffset -.75in
135 \voffset -.745in
136 \font\titlefont=cmbx10 \scaledmag2
137 \font\headingfont=cmbx10 \scaledmag1
138 \font\smallfont=cmr6
139 \font\smallsy=cmsy6
140 \font\eightrm=cmr8
141 \font\eightbf=cmbx8
142 \font\eightit=cmti8
143 \font\eighttt=cmtt8
144 \font\eightmi=cmmi8
145 \font\eightsy=cmsy8
146 \textfont0=\eightrm
147 \textfont1=\eightmi
148 \textfont2=\eightsy
149 \def\rm{\eightrm}
150 \def\bf{\eightbf}
151 \def\it{\eightit}
152 \def\tt{\eighttt}
153 \if 1\the\letterpaper
154 \normalbaselineskip=.8\normalbaselineskip
155 \else
156 \normalbaselineskip=.7\normalbaselineskip
157 \fi
158 \normallineskip=.8\normallineskip
159 \normallineskiplimit=.8\normallineskiplimit
160 \normalbaselines\rm %make definitions take effect
161
162 \if 2\ncolumns
163 \let\maxcolumn=b
164 \footline{\hss\rm\folio\hss}
165 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
166 \else \if 3\ncolumns
167 \let\maxcolumn=c
168 \nopagenumbers
169 \else
170 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
171 \errmessage{Illegal number of columns per page}
172 \fi\fi
173
174 %% \intercolumnskip=.46in
175 \intercolumnskip=.65in
176 \def\abc{a}
177 \output={% %see The TeXbook page 257
178 % This next line is useful when designing the layout.
179 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
180 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
181 \else\if a\abc
182 \global\setbox\columna\columnbox \global\def\abc{b}
183 %% in case we never use \columnb (two-column mode)
184 \global\setbox\columnb\hbox to -\intercolumnskip{}
185 \else
186 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
187 \def\multicolumnformat{\shipout\vbox{\makeheadline
188 \hbox{\box\columna\hskip\intercolumnskip
189 \box\columnb\hskip\intercolumnskip\columnbox}
190 \makefootline}\advancepageno}
191 \def\columnbox{\leftline{\pagebody}}
192
193 \def\bye{\par\vfill\supereject
194 \if a\abc \else\null\vfill\eject\fi
195 \if a\abc \else\null\vfill\eject\fi
196 \end}
197 \fi
198
199 % we won't be using math mode much, so redefine some of the characters
200 % we might want to talk about
201 \catcode`\^=12
202 \catcode`\_=12
203
204 \chardef\\=`\\
205 \chardef\{=`\{
206 \chardef\}=`\}
207
208 \hyphenation{mini-buf-fer}
209
210 \parindent 0pt
211 \parskip 1ex plus .5ex minus .5ex
212
213 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
214
215 % newcolumn - force a new column. Use sparingly, probably only for
216 % the first column of a page, which should have a title anyway.
217 \outer\def\newcolumn{\vfill\eject}
218
219 % title - page title. Argument is title text.
220 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
221
222 % section - new major section. Argument is section name.
223 \outer\def\section#1{\par\filbreak
224 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
225 \vskip 2ex plus 1ex minus 1.5ex}
226
227 \newdimen\keyindent
228
229 % beginindentedkeys...endindentedkeys - key definitions will be
230 % indented, but running text, typically used as headings to group
231 % definitions, will not.
232 \def\beginindentedkeys{\keyindent=1em}
233 \def\endindentedkeys{\keyindent=0em}
234 \endindentedkeys
235
236 % paralign - begin paragraph containing an alignment.
237 % If an \halign is entered while in vertical mode, a parskip is never
238 % inserted. Using \paralign instead of \halign solves this problem.
239 \def\paralign{\vskip\parskip\halign}
240
241 % \<...> - surrounds a variable name in a code example
242 \def\<#1>{{\it #1\/}}
243
244 % kbd - argument is characters typed literally. Like the Texinfo command.
245 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
246
247 % beginexample...endexample - surrounds literal text, such a code example.
248 % typeset in a typewriter font with line breaks preserved
249 \def\beginexample{\par\leavevmode\begingroup
250 \obeylines\obeyspaces\parskip0pt\tt}
251 {\obeyspaces\global\let =\ }
252 \def\endexample{\endgroup}
253
254 % key - definition of a key.
255 % \key{description of key}{key-name}
256 % prints the description left-justified, and the key-name in a \kbd
257 % form near the right margin.
258 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
259 {\hsize=.75\hsize\rightskip=1em
260 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
261
262 \newbox\metaxbox
263 \setbox\metaxbox\hbox{\kbd{M-x }}
264 \newdimen\metaxwidth
265 \metaxwidth=\wd\metaxbox
266
267 % metax - definition of a M-x command.
268 % \metax{description of command}{M-x command-name}
269 % Tries to justify the beginning of the command name at the same place
270 % as \key starts the key name. (The "M-x " sticks out to the left.)
271 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
272 {\hskip\keyindent\relax#1\hfil}%
273 \hskip -\metaxwidth minus 1fil
274 \kbd{#2}\hfil}}
275
276 % threecol - like "key" but with two key names.
277 % for example, one for doing the action backward, and one for forward.
278 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
279 &\kbd{#3}\hfil\quad\cr}
280
281
282 %**end of header
283 \f
284
285 \title{GNU Emacs: Cart\~ao de Refer\^encia}
286 \centerline{(para vers\~ao \versionemacs)}
287
288 \section{Iniciando o Emacs}
289
290 Para entrar no GNU Emacs, digite: \kbd{emacs}
291
292 \section{Saindo do Emacs}
293
294 \key{suspende ou minimiza o Emacs}{C-z}
295 \key{encerra o Emacs}{C-x C-c}
296
297 \section{Arquivos}
298
299 \key{{\bf abre} um arquivo}{C-x C-f}
300 \key{{\bf salva} um arquivo em disco}{C-x C-s}
301 \key{salva {\bf todos} arquivos abertos}{C-x s}
302 \key{{\bf insere} outro arquivo neste buffer}{C-x i}
303 \key{substitui este arquivo por outro}{C-x C-v}
304 \key{salva o buffer em um arquivo especificado}{C-x C-w}
305 \key{alterna o estado de somente leitura do buffer}{C-x C-q}
306
307 \section{Ajuda (Help)}
308
309 Tecle \kbd{C-h} (ou \kbd{F1}) e siga as instru{\c{c}}{\~o}es.
310
311 \key{remove a janela de ajuda}{C-x 1}
312 \key{rola a janela de ajuda}{C-M-v}
313
314 \key{apropos: mostra comandos que casam com a string}{C-h a}
315 \key{descreve fun{\c{c}}{\~a}o associada a teclas}{C-h k}
316 \key{descreve uma fun{\c{c}}{\~a}o}{C-h f}
317 \key{busca informa{\c{c}}{\~o}es espec{\'\i}ficas do modo}{C-h m}
318
319 \section{Recuperando-se de Erros}
320
321 \key{{\bf aborta} uma opera{\c{c}}{\~a}o}{C-g}
322 \metax{{\bf recupera} arquivos ap{\'o}s crash}{M-x recover-session}
323 \metax{desfaz uma altera{\c{c}}{\~a}o ({\bf undo})}{C-x u, C-_ {\rm or} C-/}
324 \metax{restaura um buffer para o arquivo}{M-x revert-buffer}
325 \key{redesenha a tela}{C-l}
326
327 \section{Busca Incremental}
328
329 \key{busca para frente}{C-s}
330 \key{busca para tr{\'a}s}{C-r}
331 \key{busca por express{\~a}o regular}{C-M-s}
332 \key{busca por express{\~a}o regular para tr{\'a}s}{C-M-r}
333
334 \key{seleciona a string de pesquisa anterior}{M-p}
335 \key{seleciona a string seguinte de pesquisa}{M-n}
336 \key{sai da busca incremental}{RET}
337 \key{desfaz o efeito do {\'u}ltimo caracter}{DEL}
338 \key{encerra a busca}{C-g}
339
340 Use \kbd{C-s} ou \kbd{C-r} novamente para repetir a busca.
341 \kbd{C-g} cancela apenas o que ainda n{\~a}o foi feito.
342
343 \shortcopyrightnotice
344
345 \section{Movimenta{\c{c}}{\~a}o}
346
347 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
348 \threecol{{\bf avan{\c{c}}ar}}{{\bf tr{\'a}s}}{{\bf frente}}
349 \threecol{um caracter}{C-b}{C-f}
350 \threecol{uma palavra}{M-b}{M-f}
351 \threecol{uma linha}{C-p}{C-n}
352 \threecol{para in{\'\i}cio ou fim de linha}{C-a}{C-e}
353 \threecol{senten{\c{c}}a}{M-a}{M-e}
354 \threecol{par{\'a}grafo}{M-\{}{M-\}}
355 \threecol{p{\'a}gina}{C-x [}{C-x ]}
356 \threecol{sexp}{C-M-b}{C-M-f}
357 \threecol{fun{\c{c}}{\~a}o}{C-M-a}{C-M-e}
358 \threecol{para in{\'\i}cio ou fim do buffer}{M-<}{M->}
359 }
360
361 \key{rolar para pr{\'o}xima tela}{C-v}
362 \key{rolar para tela anterior}{M-v}
363 \key{rolar para esquerda}{C-x <}
364 \key{rolar para direita}{C-x >}
365 \key{rolar a linha corrente para o centro da tela}{C-u C-l}
366
367 \section{Cortando e Apagando}
368
369 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
370 \threecol{{\bf entidade a cortar}}{{\bf tr{\'a}s}}{{\bf frente}}
371 \threecol{caracter (apaga, n{\~a}o corta)}{DEL}{C-d}
372 \threecol{palavra}{M-DEL}{M-d}
373 \threecol{linha (at{\'e} o final)}{M-0 C-k}{C-k}
374 \threecol{senten{\c{c}}a}{C-x DEL}{M-k}
375 \threecol{sexp}{M-- C-M-k}{C-M-k}
376 }
377
378 \key{corta {\bf regi{\~a}o}}{C-w}
379 \key{copia a {\bf regi{\~a}o}}{M-w}
380 \key{cortar at{\'e} a pr{\'o}xima ocorr{\^e}ncia de {\it char}}{M-z {\it char}}
381
382 \key{colar a {\'u}ltima coisa cortada}{C-y}
383 \key{substitui a {\'u}lt. colagem pela c{\'o}pia anterior}{M-y}
384
385 \section{Marcando}
386
387 \key{posiciona a marca aqui}{C-@ {\rm or} C-SPC}
388 \key{troca a marca pelo ponto e vice-versa}{C-x C-x}
389
390 \key{coloca a marca {\it arg\/} {\bf palavras} adiante}{M-@}
391 \key{marca o {\bf par{\'a}grafo}}{M-h}
392 \key{marca a {\bf p{\'a}gina}}{C-x C-p}
393 \key{marca a {\bf sexp}}{C-M-@}
394 \key{marca uma {\bf fun{\c{c}}{\~a}o}}{C-M-h}
395 \key{marca todo {\bf buffer}}{C-x h}
396
397 \section{Busca e Substitui{\c{c}}{\~a}o}
398
399 \key{Substitui interativamente uma string}{M-\%}
400 % query-replace-regexp is bound to C-M-% but that can't be typed on
401 % consoles.
402 \metax{usando express{\~a}o regular}{M-x query-replace-regexp}
403
404 Respostas v{\'a}lidas no modo de busca e substitui{\c{c}}{\~a}o
405
406 \key{{\bf substitui} esta, e prossegue}{SPC}
407 \key{substitui esta e entrada e n{\~a}o avan{\c{c}}a}{,}
408 \key{{\bf pula} para a pr{\'o}xima sem substituir}{DEL}
409 \key{substitui em todo o texto restante}{!}
410 \key{{\bf volta} para a palavra anterior}{^}
411 \key{{\bf encerra}}{RET}
412 \key{entra na edi{\c{c}}{\~a}o recursiva (\kbd{C-M-c} para sair)}{C-r}
413
414
415 \section{M{\'u}ltiplas Janelas}
416
417 Quando forem mostrados 2 comandos, o segundo tem comportamento similar
418 para frame.
419
420 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0
421 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
422 \threecol{elimina todas outras janelas}{C-x 1\ \ \ \ }{C-x 5 1}
423 \threecol{divide a janela, acima e abaixo}{C-x 2\ \ \ \ }{C-x 5 2}
424 \threecol{elimina esta janela}{C-x 0\ \ \ \ }{C-x 5 0}
425 }}
426 \key{divide a janela, lado a lado}{C-x 3}
427
428 \key{rola a outra janela}{C-M-v}
429
430 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 2\wd0
431 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
432 \threecol{leva o cursor para outra janela}{C-x o}{C-x 5 o}
433
434 \threecol{seleciona um buffer em outra janela}{C-x 4 b}{C-x 5 b}
435 \threecol{mostra um buffer em outra janela}{C-x 4 C-o}{C-x 5 C-o}
436 \threecol{busca um arquivo em outra janela}{C-x 4 f}{C-x 5 f}
437 \threecol{busca arquivo (ro) em outra janela}{C-x 4 r}{C-x 5 r}
438 \threecol{executa Dired em outra janela}{C-x 4 d}{C-x 5 d}
439 \threecol{busca tag em outra janela}{C-x 4 .}{C-x 5 .}
440 }}
441
442 \key{aumenta a janela na vertical}{C-x ^}
443 \key{estreita a janela}{C-x \{}
444 \key{alarga a janela}{C-x \}}
445
446 \section{Formatando}
447
448 \key{identa a {\bf linha} corrente (modo)}{TAB}
449 \key{identa a {\bf regi{\~a}o} (modo)}{C-M-\\}
450 \key{identa a {\bf sexp} (modo)}{C-M-q}
451 \key{identa regi{\~a}o rigidamente {\it arg\/} colunas}{C-x TAB}
452
453 \key{insere uma nova linha ap{\'o}s o ponto}{C-o}
454 \key{move o restante da linha para baixo}{C-M-o}
455 \key{apaga linhas em branco em torno do ponto}{C-x C-o}
456 \key{junta a linha com a anterior}{M-^}
457 \key{apaga todos brancos em torno do ponto}{M-\\}
458 \key{insere um espa{\c{c}}o em branco}{M-SPC}
459
460 \key{preenche o par{\'a}grafo}{M-q}
461 \key{define a coluna limite de preenchimento}{C-x f}
462 \key{define um prefixo para cada linha}{C-x .}
463
464 \key{formata fonte}{M-o}
465
466 \section{Mai{\'u}sculas e Min{\'u}sculas}
467
468 \key{Palavra para mai{\'u}sculas}{M-u}
469 \key{Palavra para min{\'u}sculas}{M-l}
470 \key{Primeira letra mai{\'u}scula (capitalize)}{M-c}
471
472 \key{Regi{\~a}o para mai{\'u}sculas}{C-x C-u}
473 \key{Regi{\~a}o para min{\'u}sculas}{C-x C-l}
474
475 \section{O Minibuffer}
476
477 As teclas seguintes s{\~a}o definidas no minibuffer.
478
479 \key{complete o m{\'a}ximo possi{\'\i}vel}{TAB}
480 \key{complete at{\'e} uma palavra}{SPC}
481 \key{complete e execute}{RET}
482 \key{mostre as op{\c{c}}{\~o}es para completar}{?}
483 \key{busca a entrada anterior no minibuffer}{M-p}
484 \key{busca a pr{\'o}xima entrada no minibuffer ou o default}{M-n}
485 \key{busca regexp no hist{\'o}rico para tr{\'a}s}{M-r}
486 \key{busca regexp no hist{\'o}rico para frente}{M-s}
487 \key{encerra o comando}{C-g}
488
489 Tecle \kbd{C-x ESC ESC} para editar e repetir o {\'u}ltimo comando
490 utilizado. Tecle \kbd{F10} para ativar o menu.
491
492 \newcolumn
493 \title{GNU Emacs: Cart\~ao de Refer\^encia}
494 \centerline{(para vers\~ao \versionemacs)}
495
496 \section{Buffers}
497
498 \key{seleciona outro buffer}{C-x b}
499 \key{lista todos buffers}{C-x C-b}
500 \key{mata um buffer}{C-x k}
501
502 \section{Transposi{\c{c}}{\~a}o}
503
504 \key{transp{\~o}e {\bf caracteres}}{C-t}
505 \key{transp{\~o}e {\bf palavras}}{M-t}
506 \key{transp{\~o}e {\bf linhas}}{C-x C-t}
507 \key{transp{\~o}e {\bf sexps}}{C-M-t}
508
509 \section{Verifica{\c{c}}{\~a}o Ortogr{\'a}fica}
510
511 \key{verifica a palavra corrente}{M-\$}
512 \metax{verifica todas palavras de uma regi{\~a}o}{M-x ispell-region}
513 \metax{verifica todo o buffer}{M-x ispell-buffer}
514
515 \section{Tags}
516
517 \key{busca uma tag (uma defini{\c{c}}{\~a}o)}{M-.}
518 \key{encontra a pr{\'o}xima ocorr{\^e}ncia da tag}{C-u M-.}
519 \metax{especifica um novo arquivo de tags}{M-x visit-tags-table}
520
521 \metax{busca por regexp em todos arquivos}{M-x tags-search}
522 \metax{busca e subst. em todos arquivos}{M-x tags-query-replace}
523 \key{continua a {\'u}ltima busca ou busca e substitui{\c{c}}{\~a}o}{M-,}
524
525 \section{Shells}
526
527 \key{executa um comando do shell}{M-!}
528 \key{executa um comando do shell na regi{\~a}o}{M-|}
529 \key{filtra uma regi{\~a}o por um comando do shell}{C-u M-|}
530 \key{inicia um shell na janela \kbd{*shell*}}{M-x shell}
531
532 \section{Ret{\^a}ngulos}
533
534 \key{copia o ret{\^a}ngulo para o registrador}{C-x r r}
535 \key{corta o ret{\^a}ngulo}{C-x r k}
536 \key{cola o ret{\^a}ngulo}{C-x r y}
537 \key{abre o ret{\^a}ngulo, move o texto para direita}{C-x r o}
538 \key{troca por espa{\c{c}}os o conte{\'u}do do ret{\^a}ngulo}{C-x r c}
539 \key{antep{\~o}e uma linha a string}{C-x r t}
540
541 \section{Abreviaturas}
542
543 \key{adiciona uma abreviatura global}{C-x a g}
544 \key{adiciona abreviatura ao modo local}{C-x a l}
545 \key{adiciona globalmente expans{\~a}o de abrev.}{C-x a i g}
546 \key{adiciona localmente expans{\~a}o de abrev.}{C-x a i l}
547 \key{explicitamente expande uma abrev}{C-x a e}
548
549 \key{completa com base em palavras anteriores}{M-/}
550
551
552 \section{Express{\~o}es Regulares}
553
554 \key{qualquer caracter exceto nova linha}{. {\rm(dot)}}
555 \key{zero ou mais repeti{\c{c}}{\~o}es}{*}
556 \key{uma ou mais repeti{\c{c}}{\~o}es}{+}
557 \key{zero ou uma repeti{\c{c}}{\~a}o}{?}
558 \key{protege o caracter especial {\it c\/}}{\\{\it c}}
559 \key{(``or'')}{\\|}
560 \key{agrupamento}{\\( {\rm$\ldots$} \\)}
561 \key{mesmo texto que {\it n\/}-{\'e}simo grupo}{\\{\it n}}
562 \key{quebra de palavra}{\\b}
563 \key{sem quebra de palavra}{\\B}
564
565 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
566 \threecol{{\bf entidade}}{{\bf casa in{\'\i}cio}}{{\bf casa fim}}
567 \threecol{linha}{^}{\$}
568 \threecol{palavra}{\\<}{\\>}
569 \threecol{buffer}{\\`}{\\'}
570
571 \threecol{{\bf classe de caracteres}}{{\bf casa esses}}{{\bf casa os outros}}
572 \threecol{conjunto expl{\'\i}cito}{[ {\rm$\ldots$} ]}{[^ {\rm$\ldots$} ]}
573 \threecol{caracter de sintaxe de palavra}{\\w}{\\W}
574 \threecol{caracter de sintaxe de {\it c}}{\\s{\it c}}{\\S{\it c}}
575 }
576
577 \section{Conjuntos de Carac. Internacionais}
578
579 \key{especifica uma l{\'\i}ngua principal}{C-x RET l}
580 \metax{mostra todos m{\'e}todos de inser{\c{c}}{\~a}o}{M-x list-input-methods}
581 \key{habilita/desabilita um m{\'e}todo de inser{\c{c}}{\~a}o}{C-\\}
582 \key{determina o sistema de codifica{\c{c}}{\~a}o}{C-x RET c}
583 \metax{mostra sistemas de codifica{\c{c}}{\~a}o}{M-x list-coding-systems}
584 \metax{escolhe a codifica{\c{c}}{\~a}o preferida}{M-x prefer-coding-system}
585
586 \section{Info}
587
588 \key{entra no leitor de Info}{C-h i}
589 \key{busca fun{\c{c}}{\~a}o ou arquivo no Info}{C-h S}
590 \beginindentedkeys
591
592 Movimenta{\c{c}}{\~a}o em um nodo:
593
594 \key{rola para frente}{SPC}
595 \key{rola para tr{\'a}s}{DEL}
596 \key{in{\'\i}cio do nodo}{. {\rm (dot)}}
597
598 Movimenta{\c{c}}{\~a}o entre nodos:
599
600 \key{{\bf pr{\'o}ximo} nodo}{n}
601 \key{nodo {\bf anterior}}{p}
602 \key{mover cima {\bf cima}}{u}
603 \key{seleciona item do menu pelo nome}{m}
604 \key{seleciona {\it n\/}-{\'e}simo item do menu}{{\it n}}
605 \key{segue refer{\^e}ncia cruzada (retorna com \kbd{l})}{f}
606 \key{retorna {\'u}ltimo nodo visitado}{l}
607 \key{retorna ao diret{\'o}rio de nodos}{d}
608 \key{ir para o topo do arquivo Info}{t}
609 \key{ir para qualquer nodo por nome}{g}
610
611 Outros:
612
613 \key{executar {\bf tutorial} do Info}{h}
614 \key{busca pelo assunto no {\'\i}ndice}{i}
615 \key{busca por express{\~a}o regular}{s}
616 \key{{\bf sair} Info}{q}
617
618 \endindentedkeys
619
620 \section{Registrador}
621
622 \key{salva regi{\~a}o em um registrador}{C-x r s}
623 \key{insere o conte{\'u}do do registrador no buffer}{C-x r i}
624
625 \key{salva valor do ponto no registrador}{C-x r SPC}
626 \key{salta para o ponto salvo no registrador}{C-x r j}
627
628 \section{Macros de Teclado}
629
630 \key{{\bf inicia} a defini{\c{c}}{\~a}o de uma macro}{C-x (}
631 \key{{\bf encerra} a defini{\c{c}}{\~a}o de uma macro}{C-x )}
632 \key{{\bf executa} a {\'u}ltima macro definida}{C-x e}
633 \key{adiciona a {\'u}ltima macro definida}{C-u C-x (}
634 \metax{nomeia a {\'u}ltima macro definida}{M-x name-last-kbd-macro}
635 \metax{insere uma defini{\c{c}}{\~a}o em Lisp}{M-x insert-kbd-macro}
636
637 \section{Lidando com Emacs Lisp}
638
639 \key{avalia {\bf sexp} antes do ponto}{C-x C-e}
640 \key{avalia a {\bf defun} corrente}{C-M-x}
641 \metax{avalia a {\bf regi{\~a}o}}{M-x eval-region}
642 \key{l{\^e} e avalia o minibuffer}{M-:}
643 \metax{carrega do diret{\'o}rio padr{\~a}o do sistema}{M-x load-library}
644
645 \section{Personaliza{\c{c}}{\~a}o Simples}
646
647 \metax{personaliza vari{\'a}veis e fontes}{M-x customize}
648
649 % The intended audience here is the person who wants to make simple
650 % customizations and knows Lisp syntax.
651
652 Fazendo teclas de atalho globais em Emacs Lisp (exemplos):
653
654 \beginexample%
655 (global-set-key "\\C-cg" 'goto-line)
656 (global-set-key "\\M-\#" 'query-replace-regexp)
657 \endexample
658
659 \section{Escrevendo Comandos}
660
661 \beginexample%
662 (defun \<command-name> (\<args>)
663 "\<documentation>" (interactive "\<template>")
664 \<body>)
665 \endexample
666
667 Um exemplo:
668
669 \beginexample%
670 (defun this-line-to-top-of-window (line)
671 "Reposition line point is on to top of window.
672 With ARG, put point on line ARG."
673 (interactive "P")
674 (recenter (if (null line)
675 0
676 (prefix-numeric-value line))))
677 \endexample
678
679 A especifica{\c{c}}{\~a}o \kbd{interactive} explica como ler
680 interativamente argumentos. Tecle \kbd{C-h f interactive} para mais
681 detalhes.
682
683 \copyrightnotice
684
685 \bye
686 \f
687 % Local variables:
688 % compile-command: "pdftex pt-br-refcard"
689 % coding: iso-latin-1
690 % End:
691
692 % arch-tag: 56bf248c-a1f3-443d-93f7-02d7aea67d94