1 % Reference Card for GNU Emacs version 22 on Unix systems
3 \newcount\columnsperpage
6 % This file can be printed with 1, 2, or 3 columns per page (see below).
7 % Specify how many you want here.
11 % Set letterpapaer to 0 for A4 paper, 1 for letter (US) paper. Useful
12 % only when columnsperpage is 2 or 3.
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.
20 % This file is part of GNU Emacs.
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)
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.
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.
37 % This file is intended to be processed by plain TeX (TeX82).
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:
42 % produces six separate pages, each of which needs to be reduced to 80%.
43 % This gives the best resolution.
45 % produces three already-reduced pages.
46 % You will still need to cut and paste.
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.
53 % To compile and print this document:
55 % dvips -t landscape refcard.dvi
59 % Internet: gildea@stop.mail-abuse.org
61 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
62 % for their many good ideas.
64 % If there were room, it would be nice to see a section on Dired.
66 % Translated from English to Portuguese by Rodrigo Real, send comments
67 % and suggestions to rreal@ucpel.tche.br. Thanks to Mario Goulart for
71 \def\versionnumber{2.3}
74 \def\shortcopyrightnotice{\vskip 1ex plus
2 fill
75 \centerline{\small \copyright\
\year\ Free Software Foundation, Inc.
76 Permissions on back. v
\versionnumber}}
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
}
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.
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
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}
97 \newdimen\intercolumnskip %horizontal space between columns
98 \newbox\columna %boxes to hold columns already built
101 \def\ncolumns{\the\columnsperpage}
103 \message{[\ncolumns\space
104 column
\if 1\ncolumns\else s
\fi\space per page
]}
106 \def\scaledmag#1{ scaled
\magstep #1}
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
114 \font\titlefont=
\fontname\tenbf \scaledmag3
115 \font\headingfont=
\fontname\tenbf \scaledmag2
116 \font\smallfont=
\fontname\sevenrm
117 \font\smallsy=
\fontname\sevensy
119 \footline{\hss\folio}
120 \def\makefootline{\baselineskip10pt\hsize6.5in
\line{\the\footline}}
121 \else %2 or 3 columns uses prereduced size
123 \if 1\the\letterpaper
130 \font\titlefont=cmbx10
\scaledmag2
131 \font\headingfont=cmbx10
\scaledmag1
147 \if 1\the\letterpaper
148 \normalbaselineskip=
.8\normalbaselineskip
150 \normalbaselineskip=
.7\normalbaselineskip
152 \normallineskip=
.8\normallineskip
153 \normallineskiplimit=
.8\normallineskiplimit
154 \normalbaselines\rm %make definitions take effect
158 \footline{\hss\rm\folio\hss}
159 \def\makefootline{\vskip 2in
\hsize=
6.86in
\line{\the\footline}}
164 \errhelp{You must set
\columnsperpage equal to
1,
2, or
3.
}
165 \errmessage{Illegal number of columns per page
}
168 %% \intercolumnskip=.46in
169 \intercolumnskip=
.65in
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
}
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{}
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}}
187 \def\bye{\par\vfill\supereject
188 \if a
\abc \else\null\vfill\eject\fi
189 \if a
\abc \else\null\vfill\eject\fi
193 % we won't be using math mode much, so redefine some of the characters
194 % we might want to talk about
202 \hyphenation{mini-buf-fer
}
205 \parskip 1ex plus
.5ex minus
.5ex
207 \def\small{\smallfont\textfont2=
\smallsy\baselineskip=
.8\baselineskip}
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}
213 % title - page title. Argument is title text.
214 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus
.5ex
}
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
}
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
}
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}
235 % \<...> - surrounds a variable name in a code example
236 \def\<
#1>
{{\it #1\/
}}
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
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}
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}}
257 \setbox\metaxbox\hbox{\kbd{M-x
}}
259 \metaxwidth=
\wd\metaxbox
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
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}
279 \title{GNU Emacs: Cart\~ao de Refer\^encia
}
280 \centerline{(para vers\~ao
22)
}
282 \section{Iniciando o Emacs
}
284 Para entrar no GNU Emacs, digite:
\kbd{emacs
}
286 \section{Saindo do Emacs
}
288 \key{suspende ou minimiza o Emacs
}{C-z
}
289 \key{encerra o Emacs
}{C-x C-c
}
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
}
301 \section{Ajuda (Help)
}
303 Tecle
\kbd{C-h
} (ou
\kbd{F1
}) e siga as instru
{\c{c
}}{\~o
}es.
305 \key{remove a janela de ajuda
}{C-x
1}
306 \key{rola a janela de ajuda
}{C-M-v
}
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
}
313 \section{Recuperando-se de Erros
}
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
}
321 \section{Busca Incremental
}
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
}
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
}
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.
337 \shortcopyrightnotice
339 \section{Movimenta
{\c{c
}}{\~a
}o
}
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->
}
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
}
361 \section{Cortando e Apagando
}
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
}
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
}}
376 \key{colar a
{\'u
}ltima coisa cortada
}{C-y
}
377 \key{substitui a
{\'u
}lt. colagem pela c
{\'o
}pia anterior
}{M-y
}
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
}
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
}
391 \section{Busca e Substitui
{\c{c
}}{\~a
}o
}
393 \key{Substitui interativamente uma string
}{M-\%
}
394 % query-replace-regexp is bound to C-M-% but that can't be typed on
396 \metax{usando express
{\~a
}o regular
}{M-x query-replace-regexp
}
398 Respostas v
{\'a
}lidas no modo de busca e substitui
{\c{c
}}{\~a
}o
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
}
409 \section{M
{\'u
}ltiplas Janelas
}
411 Quando forem mostrados
2 comandos, o segundo tem comportamento similar
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}
420 \key{divide a janela, lado a lado
}{C-x
3}
422 \key{rola a outra janela
}{C-M-v
}
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
}
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 .
}
436 \key{aumenta a janela na vertical
}{C-x ^
}
437 \key{estreita a janela
}{C-x \
{}
438 \key{alarga a janela
}{C-x \
}}
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
}
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
}
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 .
}
458 \key{formata fonte
}{M-o
}
460 \section{Mai
{\'u
}sculas e Min
{\'u
}sculas
}
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
}
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
}
469 \section{O Minibuffer
}
471 As teclas seguintes s
{\~a
}o definidas no minibuffer.
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
}
483 Tecle
\kbd{C-x ESC ESC
} para editar e repetir o
{\'u
}ltimo comando
484 utilizado. Tecle
\kbd{F10
} para ativar o menu.
487 \title{GNU Emacs: Cart\~ao de Refer\^encia
}
488 \centerline{(para vers\~ao
22)
}
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
}
496 \section{Transposi
{\c{c
}}{\~a
}o
}
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
}
503 \section{Verifica
{\c{c
}}{\~a
}o Ortogr
{\'a
}fica
}
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
}
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
}
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-,
}
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
}
526 \section{Ret
{\^a
}ngulos
}
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
}
535 \section{Abreviaturas
}
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
}
543 \key{completa com base em palavras anteriores
}{M-/
}
546 \section{Express
{\~o
}es Regulares
}
548 \key{qualquer caracter exceto nova linha
}{.
{\rm(dot)
}}
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
}}
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}
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
}{\\`
}{\\'
}
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
}}
571 \section{Conjuntos de Carac. Internacionais
}
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
}
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
}
586 Movimenta
{\c{c
}}{\~a
}o em um nodo:
588 \key{rola para frente
}{SPC
}
589 \key{rola para tr
{\'a
}s
}{DEL
}
590 \key{in
{\'
\i}cio do nodo
}{.
{\rm (dot)
}}
592 Movimenta
{\c{c
}}{\~a
}o entre nodos:
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
}}
599 \key{segue refer
{\^e
}ncia cruzada (retorna com
\kbd{l
})
}{f
}
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
}
607 \key{executar
{\bf tutorial
} do Info
}{h
}
608 \key{busca pelo assunto no
{\'
\i}ndice
}{i
}
609 \key{busca por express
{\~a
}o regular
}{s
}
610 \key{{\bf sair
} Info
}{q
}
614 \section{Registrador
}
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
}
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
}
622 \section{Macros de Teclado
}
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
}
631 \section{Lidando com Emacs Lisp
}
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
}
639 \section{Personaliza
{\c{c
}}{\~a
}o Simples
}
641 \metax{personaliza vari
{\'a
}veis e fontes
}{M-x customize
}
643 % The intended audience here is the person who wants to make simple
644 % customizations and knows Lisp syntax.
646 Fazendo teclas de atalho globais em Emacs Lisp (exemplos):
649 (global-set-key "\
\C-cg" 'goto-line)
650 (global-set-key "\
\M-\#" 'query-replace-regexp)
653 \section{Escrevendo Comandos
}
656 (defun \<command-name> (\<args>)
657 "\<documentation>" (interactive "\<template>")
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."
668 (recenter (if (null line)
670 (prefix-numeric-value line))))
673 A especifica
{\c{c
}}{\~a
}o
\kbd{interactive
} explica como ler
674 interativamente argumentos. Tecle
\kbd{C-h f interactive
} para mais
682 % compile-command: "tex pt-br-refcard"
683 % coding: iso-latin-1
686 % arch-tag: 56bf248c-a1f3-443d-93f7-02d7aea67d94