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