pt-br-refcard.tex 22 KB

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