Commit | Line | Data |
---|---|---|
0b5546d6 | 1 | % Reference Card for GNU Emacs |
c9993712 | 2 | |
ab422c4d PE |
3 | % Copyright (C) 1987, 1993, 1996-1997, 2001-2013 Free Software |
4 | % Foundation, Inc. | |
c9993712 | 5 | |
0b5546d6 GM |
6 | % Author: Stephen Gildea <gildea@stop.mail-abuse.org> |
7 | % French translation: Eric Jacoboni | |
8 | % Micha\"el Cadilhac | |
5e56e175 GM |
9 | |
10 | % This file is part of GNU Emacs. | |
11 | ||
b83446dd | 12 | % GNU Emacs is free software: you can redistribute it and/or modify |
5e56e175 | 13 | % it under the terms of the GNU General Public License as published by |
b83446dd GM |
14 | % the Free Software Foundation, either version 3 of the License, or |
15 | % (at your option) any later version. | |
5e56e175 GM |
16 | |
17 | % GNU Emacs is distributed in the hope that it will be useful, | |
18 | % but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | % GNU General Public License for more details. | |
21 | ||
22 | % You should have received a copy of the GNU General Public License | |
b83446dd | 23 | % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
5e56e175 | 24 | |
0b5546d6 | 25 | |
5e56e175 GM |
26 | % This file is intended to be processed by plain TeX (TeX82). |
27 | % | |
28 | % The final reference card has six columns, three on each side. | |
29 | % This file can be used to produce it in any of three ways: | |
30 | % 1 column per page | |
31 | % produces six separate pages, each of which needs to be reduced to 80%. | |
32 | % This gives the best resolution. | |
33 | % 2 columns per page | |
34 | % produces three already-reduced pages. | |
35 | % You will still need to cut and paste. | |
36 | % 3 columns per page | |
37 | % produces two pages which must be printed sideways to make a | |
38 | % ready-to-use 8.5 x 11 inch reference card. | |
39 | % For this you need a dvi device driver that can print sideways. | |
0b5546d6 | 40 | % Which mode to use is controlled by setting \columnsperpage. |
5e56e175 | 41 | % |
c9993712 | 42 | % To compile and print this document: |
7b651efb RS |
43 | % tex fr-refcard.tex |
44 | % dvips -t landscape fr-refcard.dvi | |
c9993712 | 45 | |
5e56e175 | 46 | |
0b5546d6 | 47 | %**start of header |
5e56e175 | 48 | |
0b5546d6 GM |
49 | % This file can be printed with 1, 2, or 3 columns per page. |
50 | % Specify how many you want here. | |
51 | \newcount\columnsperpage | |
52 | \columnsperpage=3 | |
53 | ||
54 | % PDF output layout. 0 for A4, 1 for Letter (US), a `l' is added for | |
55 | % a landscape layout. | |
56 | \input pdflayout.sty | |
57 | \pdflayout=(0l) | |
58 | ||
dcf8834b | 59 | \input emacsver.tex |
5e56e175 | 60 | |
0b5546d6 GM |
61 | % Nothing else needs to be changed below this line. |
62 | ||
5e56e175 GM |
63 | \def\shortcopyrightnotice{\vskip 1ex plus 2 fill |
64 | \centerline{\small \copyright\ \year\ Free Software Foundation, Inc. | |
0b5546d6 | 65 | Permissions au dos.}} |
5e56e175 GM |
66 | |
67 | \def\copyrightnotice{ | |
68 | \vskip 1ex plus 2 fill\begingroup\small | |
69 | \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.} | |
0b5546d6 GM |
70 | \centerline{Pour GNU Emacs version \versionemacs} |
71 | \centerline{Conception de Stephen Gildea} | |
72 | \centerline{Traduction fran\c{c}aise de Micha\"el Cadilhac} | |
5d993286 | 73 | % previously: Eric Jacoboni |
5e56e175 | 74 | |
f858ded2 | 75 | Vous pouvez faire et distribuer des copies de cette carte, modifi\'ee ou |
a85e8979 MC |
76 | non, pourvu que la note de copyright et cette note de permission |
77 | soient conserv\'ees sur toutes les copies. | |
5e56e175 | 78 | |
0b5546d6 | 79 | Pour des copies du manuel GNU Emacs: |
5e56e175 | 80 | |
0b5546d6 | 81 | {\tt http://www.gnu.org/software/emacs/\#Manuals} |
5e56e175 GM |
82 | \endgroup} |
83 | ||
84 | % make \bye not \outer so that the \def\bye in the \else clause below | |
85 | % can be scanned without complaint. | |
86 | \def\bye{\par\vfill\supereject\end} | |
87 | ||
88 | \newdimen\intercolumnskip %horizontal space between columns | |
89 | \newbox\columna %boxes to hold columns already built | |
90 | \newbox\columnb | |
91 | ||
92 | \def\ncolumns{\the\columnsperpage} | |
93 | ||
177c0ea7 | 94 | \message{[\ncolumns\space |
5e56e175 GM |
95 | column\if 1\ncolumns\else s\fi\space per page]} |
96 | ||
97 | \def\scaledmag#1{ scaled \magstep #1} | |
98 | ||
99 | % This multi-way format was designed by Stephen Gildea October 1986. | |
100 | % Note that the 1-column format is fontfamily-independent. | |
101 | \if 1\ncolumns %one-column format uses normal size | |
102 | \hsize 4in | |
103 | \vsize 10in | |
104 | \voffset -.7in | |
105 | \font\titlefont=\fontname\tenbf \scaledmag3 | |
106 | \font\headingfont=\fontname\tenbf \scaledmag2 | |
107 | \font\smallfont=\fontname\sevenrm | |
108 | \font\smallsy=\fontname\sevensy | |
109 | ||
110 | \footline{\hss\folio} | |
111 | \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}} | |
112 | \else %2 or 3 columns uses prereduced size | |
113 | \hsize 3.2in | |
114 | \vsize 7.95in | |
5d993286 MC |
115 | % \hoffset -.75in |
116 | \hoffset -.49in | |
117 | % \voffset -.745in | |
118 | \voffset -.84in | |
5e56e175 GM |
119 | \font\titlefont=cmbx10 \scaledmag2 |
120 | \font\headingfont=cmbx10 \scaledmag1 | |
121 | \font\smallfont=cmr6 | |
122 | \font\smallsy=cmsy6 | |
123 | \font\eightrm=cmr8 | |
124 | \font\eightbf=cmbx8 | |
125 | \font\eightit=cmti8 | |
126 | \font\eighttt=cmtt8 | |
127 | \font\eightmi=cmmi8 | |
128 | \font\eightsy=cmsy8 | |
129 | \textfont0=\eightrm | |
130 | \textfont1=\eightmi | |
131 | \textfont2=\eightsy | |
132 | \def\rm{\eightrm} | |
133 | \def\bf{\eightbf} | |
134 | \def\it{\eightit} | |
135 | \def\tt{\eighttt} | |
136 | \normalbaselineskip=.8\normalbaselineskip | |
137 | \normallineskip=.8\normallineskip | |
138 | \normallineskiplimit=.8\normallineskiplimit | |
139 | \normalbaselines\rm %make definitions take effect | |
140 | ||
141 | \if 2\ncolumns | |
142 | \let\maxcolumn=b | |
143 | \footline{\hss\rm\folio\hss} | |
144 | \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}} | |
145 | \else \if 3\ncolumns | |
146 | \let\maxcolumn=c | |
147 | \nopagenumbers | |
148 | \else | |
149 | \errhelp{You must set \columnsperpage equal to 1, 2, or 3.} | |
150 | \errmessage{Illegal number of columns per page} | |
151 | \fi\fi | |
152 | ||
153 | \intercolumnskip=.46in | |
154 | \def\abc{a} | |
155 | \output={% %see The TeXbook page 257 | |
156 | % This next line is useful when designing the layout. | |
157 | %\immediate\write16{Column \folio\abc\space starts with \firstmark} | |
158 | \if \maxcolumn\abc \multicolumnformat \global\def\abc{a} | |
159 | \else\if a\abc | |
160 | \global\setbox\columna\columnbox \global\def\abc{b} | |
161 | %% in case we never use \columnb (two-column mode) | |
162 | \global\setbox\columnb\hbox to -\intercolumnskip{} | |
163 | \else | |
164 | \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi} | |
165 | \def\multicolumnformat{\shipout\vbox{\makeheadline | |
166 | \hbox{\box\columna\hskip\intercolumnskip | |
167 | \box\columnb\hskip\intercolumnskip\columnbox} | |
168 | \makefootline}\advancepageno} | |
169 | \def\columnbox{\leftline{\pagebody}} | |
170 | ||
171 | \def\bye{\par\vfill\supereject | |
172 | \if a\abc \else\null\vfill\eject\fi | |
173 | \if a\abc \else\null\vfill\eject\fi | |
177c0ea7 | 174 | \end} |
5e56e175 GM |
175 | \fi |
176 | ||
177 | % we won't be using math mode much, so redefine some of the characters | |
178 | % we might want to talk about | |
179 | \catcode`\^=12 | |
180 | \catcode`\_=12 | |
181 | ||
182 | \chardef\\=`\\ | |
183 | \chardef\{=`\{ | |
184 | \chardef\}=`\} | |
185 | ||
5d993286 | 186 | \hyphenation{mini-tam-pon} |
5e56e175 GM |
187 | |
188 | \parindent 0pt | |
189 | \parskip 1ex plus .5ex minus .5ex | |
190 | ||
191 | \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip} | |
192 | ||
193 | % newcolumn - force a new column. Use sparingly, probably only for | |
194 | % the first column of a page, which should have a title anyway. | |
195 | \outer\def\newcolumn{\vfill\eject} | |
196 | ||
197 | % title - page title. Argument is title text. | |
198 | \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex} | |
199 | ||
200 | % section - new major section. Argument is section name. | |
201 | \outer\def\section#1{\par\filbreak | |
5d993286 MC |
202 | \vskip 2ex plus 1.5ex minus 2.5ex {\headingfont #1}\mark{#1}% |
203 | \vskip 1.5ex plus 1ex minus 1.5ex} | |
5e56e175 GM |
204 | |
205 | \newdimen\keyindent | |
206 | ||
207 | % beginindentedkeys...endindentedkeys - key definitions will be | |
208 | % indented, but running text, typically used as headings to group | |
209 | % definitions, will not. | |
210 | \def\beginindentedkeys{\keyindent=1em} | |
211 | \def\endindentedkeys{\keyindent=0em} | |
212 | \endindentedkeys | |
213 | ||
214 | % paralign - begin paragraph containing an alignment. | |
215 | % If an \halign is entered while in vertical mode, a parskip is never | |
216 | % inserted. Using \paralign instead of \halign solves this problem. | |
217 | \def\paralign{\vskip\parskip\halign} | |
218 | ||
219 | % \<...> - surrounds a variable name in a code example | |
220 | \def\<#1>{{\it #1\/}} | |
221 | ||
222 | % kbd - argument is characters typed literally. Like the Texinfo command. | |
223 | \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows | |
224 | ||
225 | % beginexample...endexample - surrounds literal text, such a code example. | |
226 | % typeset in a typewriter font with line breaks preserved | |
227 | \def\beginexample{\par\leavevmode\begingroup | |
9240ea2e | 228 | \obeylines\obeyspaces\parskip0pt\tt\tolerance=10000} |
5e56e175 GM |
229 | {\obeyspaces\global\let =\ } |
230 | \def\endexample{\endgroup} | |
231 | ||
232 | % key - definition of a key. | |
233 | % \key{description of key}{key-name} | |
234 | % prints the description left-justified, and the key-name in a \kbd | |
235 | % form near the right margin. | |
5d993286 MC |
236 | \def\key#1#2{\leavevmode\hbox to \hsize{\vtop |
237 | {\hsize=.75\hsize\rightskip=1em | |
238 | \hskip\keyindent\relax#1}\kbd{#2}\hfil}} | |
5e56e175 GM |
239 | |
240 | \newbox\metaxbox | |
241 | \setbox\metaxbox\hbox{\kbd{M-x }} | |
242 | \newdimen\metaxwidth | |
243 | \metaxwidth=\wd\metaxbox | |
244 | ||
245 | % metax - definition of a M-x command. | |
246 | % \metax{description of command}{M-x command-name} | |
247 | % Tries to justify the beginning of the command name at the same place | |
248 | % as \key starts the key name. (The "M-x " sticks out to the left.) | |
e509d9bd | 249 | % Note: was \hsize=.74, but changed to avoid overflow in some places. |
5d993286 MC |
250 | \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize |
251 | {\hskip\keyindent\relax#1\hfil}% | |
252 | \hskip -\metaxwidth minus 1fil | |
253 | \kbd{#2}\hfil}} | |
5e56e175 GM |
254 | |
255 | % threecol - like "key" but with two key names. | |
256 | % for example, one for doing the action backward, and one for forward. | |
257 | \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad | |
258 | &\kbd{#3}\hfil\quad\cr} | |
259 | ||
260 | %**end of header | |
261 | \f | |
262 | ||
263 | \title{Carte de r\'ef\'erence de GNU Emacs} | |
264 | ||
d4a21b4f | 265 | \centerline{(pour la version \versionemacs)} |
5e56e175 | 266 | |
5d993286 | 267 | \section{Lancer Emacs} |
5e56e175 | 268 | |
5d993286 | 269 | Pour lancer GNU Emacs \versionemacs, tapez juste son nom : \kbd{emacs}. |
5e56e175 GM |
270 | |
271 | \section{Quitter Emacs} | |
272 | ||
5d993286 MC |
273 | \key{Suspendre Emacs (ou l'iconifier sous X)}{C-z} |
274 | \key{Quitter d\'efinitivement Emacs}{C-x C-c} | |
5e56e175 GM |
275 | |
276 | \section{Fichiers} | |
277 | ||
5d993286 MC |
278 | \key{{\bf Lire} un fichier}{C-x C-f} |
279 | \key{{\bf Sauvegarder} un fichier}{C-x C-s} | |
280 | \key{Sauvegarder {\bf tous} les fichiers}{C-x s} | |
281 | \key{{\bf Ins\'erer} un fichier sous le point (curseur)}{C-x i} | |
282 | \key{Remplacer le fichier par un autre fichier}{C-x C-v} | |
283 | \key{Sauvegarder sous un autre nom de fichier}{C-x C-w} | |
284 | \key{Basculer en mode lecture seule}{C-x C-q} | |
5e56e175 GM |
285 | |
286 | \section{Obtenir de l'aide} | |
287 | ||
5d993286 MC |
288 | Le syst\`eme d'aide est simple. Faites \kbd{C-h} (ou \kbd{F1}) et |
289 | suivez les instructions. Si vous d\'ebutez, faites \kbd{C-h t} pour un | |
5e56e175 GM |
290 | {\bf didacticiel}. |
291 | ||
5d993286 MC |
292 | \key{Supprimer la fen\^etre d'aide}{C-x 1} |
293 | \key{Faire d\'efiler la fen\^etre d'aide}{C-M-v} | |
5e56e175 | 294 | |
5d993286 MC |
295 | \key{Rechercher des commandes selon une cha\^\i{}ne}{C-h a} |
296 | \key{D\'ecrire la fonction associ\'ee \`a une touche}{C-h k} | |
297 | \key{D\'ecrire une fonction}{C-h f} | |
298 | \key{Obtenir des informations relatives au mode}{C-h m} | |
5e56e175 | 299 | |
a85e8979 | 300 | \section{R\'ecup\'eration sur erreur} |
5e56e175 | 301 | |
5d993286 MC |
302 | \key{{\bf Abandonner} une commande}{C-g} |
303 | \metax{{\bf R\'ecup\'erer} les fichiers apr\`es un crash}{M-x recover-session} | |
304 | \metax{{\bf Annuler} une modification}{C-x u, C-_ {\rm ou} C-/} | |
305 | \metax{Annuler toutes les modifications}{M-x revert-buffer} | |
306 | \key{R\'eafficher un \'ecran perturb\'e}{C-l} | |
e80016ce | 307 | |
5e56e175 GM |
308 | \section{Recherche incr\'ementale} |
309 | ||
5d993286 MC |
310 | \key{Rechercher en avant}{C-s} |
311 | \key{Rechercher en arri\`ere}{C-r} | |
312 | \key{Rechercher en avant (expression rationnelle)}{C-M-s} | |
313 | \key{Rechercher en arri\`ere (expression rationnelle)}{C-M-r} | |
5e56e175 | 314 | |
5d993286 MC |
315 | \key{Utiliser la cha\^\i{}ne de recherche pr\'ec\'edente}{M-p} |
316 | \key{Utiliser la cha\^\i{}ne de recherche suivante}{M-n} | |
317 | \key{Quitter la recherche incr\'ementale}{RET} | |
318 | \key{Annuler l'effet du dernier caract\`ere}{DEL} | |
319 | \key{Annuler la recherche en cours}{C-g} | |
5e56e175 GM |
320 | |
321 | Refaites \kbd{C-s} ou \kbd{C-r} pour r\'ep\'eter la recherche dans une | |
5d993286 MC |
322 | des directions. |
323 | En cours de recherche, \kbd{C-g} efface les derniers caract\`eres et | |
324 | ne conserve que le pr\'efixe d\'ej\`a trouv\'e. | |
325 | ||
326 | \shortcopyrightnotice | |
5e56e175 | 327 | |
5e56e175 GM |
328 | \section{D\'eplacements} |
329 | ||
330 | \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr | |
5d993286 MC |
331 | \threecol{{\bf Objet sur lequel se d\'eplacer}}{{\bf En |
332 | arri\`ere}}{{\bf En avant}} | |
333 | \threecol{Caract\`ere}{C-b}{C-f} | |
334 | \threecol{Mot}{M-b}{M-f} | |
335 | \threecol{Ligne}{C-p}{C-n} | |
336 | \threecol{Aller en d\'ebut/fin de la ligne}{C-a}{C-e} | |
337 | \threecol{Phrase}{M-a}{M-e} | |
338 | \threecol{Paragraphe}{M-\{}{M-\}} | |
339 | \threecol{Page}{C-x [}{C-x ]} | |
340 | \threecol{S-expression}{C-M-b}{C-M-f} | |
341 | \threecol{Fonction}{C-M-a}{C-M-e} | |
342 | \threecol{Aller en d\'ebut/fin du tampon}{M-<}{M->} | |
5e56e175 GM |
343 | } |
344 | ||
5d993286 MC |
345 | \key{Passer \`a l'\'ecran suivant}{C-v} |
346 | \key{Passer \`a l'\'ecran pr\'ec\'edent}{M-v} | |
347 | \key{Faire d\'efiler l'\'ecran vers la gauche}{C-x <} | |
348 | \key{Faire d\'efiler l'\'ecran vers la droite}{C-x >} | |
349 | \key{Placer la ligne courante au centre de l'\'ecran}{C-u C-l} | |
5e56e175 GM |
350 | |
351 | \section{D\'etruire et supprimer} | |
352 | ||
353 | \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr | |
5d993286 MC |
354 | \threecol{{\bf Objet \`a supprimer}}{{\bf En arri\`ere}}{{\bf En avant}} |
355 | \threecol{Caract\`ere (suppression)}{DEL}{C-d} | |
356 | \threecol{Mot}{M-DEL}{M-d} | |
357 | \threecol{Ligne (jusqu'au d\'ebut/fin)}{M-0 C-k}{C-k} | |
358 | \threecol{Phrase}{C-x DEL}{M-k} | |
359 | \threecol{S-expression}{M-- C-M-k}{C-M-k} | |
5e56e175 GM |
360 | } |
361 | ||
5d993286 MC |
362 | \key{D\'etruire une {\bf r\'egion}}{C-w} |
363 | \key{Copier une r\'egion dans le {\it kill ring}}{M-w} | |
364 | \key{D\'etruire jusqu'\`a l'occurrence suivante de {\it car}}{M-z {\it car}} | |
5e56e175 | 365 | |
5d993286 MC |
366 | \key{R\'ecup\'erer la derni\`ere r\'egion d\'etruite}{C-y} |
367 | \key{R\'ecup\'erer la r\'egion d\'etruite pr\'ec\'edente}{M-y} | |
5e56e175 GM |
368 | |
369 | \section{Marquer} | |
370 | ||
5d993286 MC |
371 | \key{Placer la marque au point}{C-@ {\rm ou} C-SPC} |
372 | \key{\'Echanger le point et la marque}{C-x C-x} | |
5e56e175 | 373 | |
5d993286 MC |
374 | \key{Placer la marque un {\bf mot} plus loin}{M-@} |
375 | \key{Marquer le {\bf paragraphe}}{M-h} | |
376 | \key{Marquer la {\bf page}}{C-x C-p} | |
377 | \key{Marquer la {\bf s-expression}}{C-M-@} | |
378 | \key{Marquer la {\bf fonction}}{C-M-h} | |
379 | \key{Marquer tout le {\bf tampon}}{C-x h} | |
5e56e175 GM |
380 | |
381 | \section{Remplacement interactif} | |
382 | ||
5d993286 | 383 | \key{Remplacer une cha\^\i{}ne de texte}{M-\%} |
c9993712 RS |
384 | % query-replace-regexp est liee a C-M-% mais on ne peut pas le |
385 | % taper dans une console. | |
5d993286 | 386 | \metax{\hskip 10pt \`a l'aide d'expr. rationnelles}{M-x query-replace-regexp} |
5e56e175 | 387 | |
5d993286 MC |
388 | R\'eponses possibles pour chaque occurrence dans le mode de |
389 | remplacement interactif : | |
5e56e175 | 390 | |
5d993286 MC |
391 | \key{{\bf Remplacer} celle-l\`a, passer \`a la suivante}{SPC} |
392 | \key{Remplacer celle-l\`a, rester l\`a}{,} | |
393 | \key{{\bf Passer} \`a la suivante sans remplacer}{DEL} | |
394 | \key{Remplacer toutes les occurrences suivantes}{!} | |
395 | \key{{\bf Revenir} \`a l'occurrence pr\'ec\'edente}{^} | |
396 | \key{{\bf Quitter} le remplacement interactif}{RET} | |
397 | \key{{\bf \'Editer} avant de reprendre (\kbd{C-M-c} : sortir)}{C-r} | |
5e56e175 GM |
398 | |
399 | \section{Fen\^etres multiples} | |
400 | ||
5d993286 MC |
401 | Lorsqu'il y a deux commandes, la seconde est celle qui concerne non |
402 | pas les fen\^etres mais les cadres. | |
5e56e175 GM |
403 | |
404 | {\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0 | |
405 | \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr | |
5d993286 MC |
406 | \threecol{Supprimer toutes les autres fen\^etres}{C-x 1\ \ \ \ }{C-x 5 1} |
407 | \threecol{Supprimer cette fen\^etre}{C-x 0\ \ \ \ }{C-x 5 0} | |
408 | \threecol{Diviser la fen\^etre horizontalement}{C-x 2\ \ \ \ }{C-x 5 2} | |
5e56e175 | 409 | }} |
5d993286 | 410 | \key{Diviser la fen\^etre verticalement}{C-x 3} |
5e56e175 | 411 | |
5d993286 | 412 | \key{Faire d\'efiler l'autre fen\^etre}{C-M-v} |
5e56e175 | 413 | |
e509d9bd | 414 | %% tabskip reduced from 10 to 3pt to fit on letterpaper. |
5e56e175 | 415 | {\setbox0=\hbox{\kbd{0}}\advance\hsize by 2\wd0 |
e509d9bd | 416 | \paralign to \hsize{#\tabskip=3pt plus 1 fil&#\tabskip=0pt&#\cr |
5d993286 MC |
417 | \threecol{S\'electionner une autre fen\^etre}{C-x o}{C-x 5 o} |
418 | ||
419 | \threecol{Choisir un tampon (autre fen\^etre)}{C-x 4 b}{C-x 5 b} | |
420 | \threecol{Afficher un tampon (autre fen\^etre)}{C-x 4 C-o}{C-x 5 C-o} | |
421 | \threecol{Lire un fichier (autre fen\^etre)}{C-x 4 f}{C-x 5 f} | |
422 | \threecol{\hskip 10pt en lecture seule}{C-x 4 r}{C-x 5 r} | |
423 | \threecol{Lancer Dired (autre fen\^etre)}{C-x 4 d}{C-x 5 d} | |
424 | \threecol{Trouver un tag (autre fen\^etre)}{C-x 4 .}{C-x 5 .} | |
5e56e175 GM |
425 | }} |
426 | ||
5d993286 MC |
427 | \key{Agrandir la fen\^etre verticalement}{C-x ^} |
428 | \key{R\'eduire la fen\^etre horizontalement}{C-x \{} | |
429 | \key{Agrandir la fen\^etre horizontalement}{C-x \}} | |
5e56e175 GM |
430 | |
431 | \section{Formater} | |
432 | ||
5d993286 MC |
433 | \key{Indenter la {\bf ligne} courante (selon le mode)}{TAB} |
434 | \key{Indenter la {\bf r\'egion} courante (selon le mode)}{C-M-\\} | |
435 | \key{Indenter la {\bf s-expr.} courante (selon le mode)}{C-M-q} | |
436 | \key{Indenter la r\'egion sur une colonne}{C-x TAB} | |
437 | \key{Ins\'erer un retour \`a la ligne apr\`es le point}{C-o} | |
438 | \key{D\'eplacer le reste de la ligne vers le bas}{C-M-o} | |
439 | \key{Supprimer les lignes vierges autour du point}{C-x C-o} | |
440 | \key{Joindre \`a la ligne pr\'ec\'edente (suiv. avec {\it arg\/})}{M-^} | |
441 | \key{Supprimer tous les espaces autour du point}{M-\\} | |
442 | \key{Mettre exactement une espace au point}{M-SPC} | |
5e56e175 | 443 | |
5d993286 MC |
444 | \key{Formater le paragraphe}{M-q} |
445 | \key{Placer la marge droite \`a {\it arg\/} colonnes}{C-u {\it arg\/} C-x f} | |
446 | \key{D\'efinir le pr\'efixe des lignes}{C-x .} | |
5e56e175 | 447 | |
5d993286 | 448 | \key{D\'efinir la fonte}{M-o} |
5e56e175 GM |
449 | |
450 | \section{Modifier la casse} | |
451 | ||
5d993286 MC |
452 | \key{Mettre le mot en capitales}{M-u} |
453 | \key{Mettre le mot en minuscules}{M-l} | |
454 | \key{Mettre une majuscule au mot}{M-c} | |
5e56e175 | 455 | |
5d993286 MC |
456 | \key{Mettre la r\'egion en capitales}{C-x C-u} |
457 | \key{Mettre la r\'egion en minuscules}{C-x C-l} | |
5e56e175 GM |
458 | |
459 | \section{Le mini-tampon} | |
460 | ||
5d993286 | 461 | Dans le mini-tampon : |
5e56e175 | 462 | |
5d993286 MC |
463 | \key{Compl\'eter autant que possible}{TAB} |
464 | \key{Compl\'eter un mot}{SPC} | |
465 | \key{Compl\'eter et ex\'ecuter}{RET} | |
466 | \key{Montrer les compl\`etements possibles}{?} | |
467 | \key{Utiliser l'entr\'ee pr\'ec\'edente du mini-tampon}{M-p} | |
468 | \key{Utiliser l'entr\'ee suivante du mini-tampon}{M-n} | |
469 | \key{Rechercher en arri\`ere dans l'historique}{M-r} | |
470 | \key{Rechercher en avant dans l'historique}{M-s} | |
471 | \key{Quitter en annulant la commande}{C-g} | |
5e56e175 | 472 | |
5d993286 MC |
473 | Faites \kbd{C-x ESC ESC} pour \'editer et r\'ep\'eter la derni\`ere |
474 | commande ayant utilis\'e le mini-tampon. Faites \kbd{F10} pour | |
475 | utiliser la barre de menu sur un terminal en utilisant le mini-tampon. | |
5e56e175 GM |
476 | |
477 | \newcolumn | |
478 | \title{Carte de r\'ef\'erence de GNU Emacs} | |
479 | ||
480 | \section{Tampons} | |
481 | ||
5d993286 MC |
482 | \key{Choisir un autre tampon}{C-x b} |
483 | \key{Lister tous les tampons}{C-x C-b} | |
484 | \key{Supprimer un tampon}{C-x k} | |
5e56e175 GM |
485 | |
486 | \section{Transposer} | |
487 | ||
5d993286 MC |
488 | \key{Transposer des {\bf caract\`eres}}{C-t} |
489 | \key{Transposer des {\bf mots}}{M-t} | |
490 | \key{Transposer des {\bf lignes}}{C-x C-t} | |
491 | \key{Transposer des {\bf s-expressions}}{C-M-t} | |
5e56e175 GM |
492 | |
493 | \section{V\'erifier l'orthographe} | |
494 | ||
5d993286 MC |
495 | \key{V\'erifier l'orthographe du mot courant}{M-\$} |
496 | \metax{V\'erifier l'orthographe d'une r\'egion}{M-x ispell-region} | |
497 | \metax{V\'erifier l'orthographe de tout le tampon}{M-x ispell-buffer} | |
5e56e175 GM |
498 | |
499 | \section{Tags} | |
500 | ||
5d993286 MC |
501 | \key{Trouver un tag (une d\'efinition)}{M-.} |
502 | \key{Passer \`a l'occurrence suivante du tag}{C-u M-.} | |
503 | \metax{Sp\'ecifier un autre fichier de tags}{M-x visit-tags-table} | |
504 | ||
505 | \metax{Rechercher dans tous les fichiers des tags}{M-x tags-search} | |
5e56e175 | 506 | |
5d993286 MC |
507 | \metax{Remplacer dans tous les fichiers}{M-x tags-query-replace} |
508 | \key{Continuer la recherche ou le remplacement}{M-,} | |
5e56e175 | 509 | |
5d993286 | 510 | \section{Shell} |
5e56e175 | 511 | |
5d993286 MC |
512 | \key{Ex\'ecuter une commande shell}{M-!} |
513 | \key{Lancer une commande shell sur la r\'egion}{M-|} | |
514 | \key{Filtrer la r\'egion avec une commande shell}{C-u M-|} | |
515 | \key{Lancer un shell dans la fen\^etre {\tt *shell*}}{M-x shell} | |
5e56e175 GM |
516 | |
517 | \section{Rectangles} | |
518 | ||
5d993286 MC |
519 | \key{Copier le rectangle dans un registre}{C-x r r} |
520 | \key{D\'etruire le rectangle}{C-x r k} | |
521 | \key{R\'ecup\'erer le rectangle}{C-x r y} | |
522 | \key{D\'ecaler le rectangle \`a droite}{C-x r o} | |
523 | \key{Vider le rectangle}{C-x r c} | |
524 | \key{Pr\'efixer chaque ligne du rectangle}{C-x r t} | |
5e56e175 GM |
525 | |
526 | \section{Abr\'eviations} | |
527 | ||
5d993286 MC |
528 | \key{Ajouter une abr\'eviation globale}{C-x a g} |
529 | \key{Ajouter une abr\'eviation locale au mode}{C-x a l} | |
530 | \key{Ajouter une expansion globale}{C-x a i g} | |
531 | \key{Ajouter une expansion locale au mode}{C-x a i l} | |
532 | \key{Faire une expansion explicite de l'abr\'eviation}{C-x a e} | |
5e56e175 | 533 | |
5d993286 | 534 | \key{Faire une expansion du mot pr\'ec\'edent}{M-/} |
5e56e175 GM |
535 | |
536 | \section{Expressions rationnelles} | |
537 | ||
5d993286 MC |
538 | \key{Un caract\`ere quelconque, sauf fin de ligne}{. {\rm(point)}} |
539 | \key{Z\'ero r\'ep\'etition ou plus}{*} | |
540 | \key{Une r\'ep\'etition ou plus}{+} | |
541 | \key{Z\'ero ou une r\'ep\'etition}{?} | |
542 | \key{\'Echapper le caract\`ere sp\'ecial {\it c\/}}{\\{\it c}} | |
543 | \key{Alternative (``ou'' non exclusif)}{\\|} | |
544 | \key{Regroupement}{\\( {\rm$\ldots$} \\)} | |
545 | \key{Reprendre le texte du {\it n\/}-i\`eme groupement}{\\{\it n}} | |
546 | \key{Limite de mot}{\\b} | |
547 | \key{Non limite de mot}{\\B} | |
5e56e175 | 548 | |
e509d9bd GM |
549 | %% tabskip reduced from 10 to 5pt for letterpaper. |
550 | \paralign to \hsize{#\tabskip=5pt plus 1 fil&#\tabskip=0pt&#\cr | |
5d993286 MC |
551 | \threecol{{\bf Objet}}{{\bf D\'ebut}}{{\bf Fin}} |
552 | \threecol{Ligne}{^}{\$} | |
553 | \threecol{Mot}{\\<}{\\>} | |
554 | \threecol{Tampon}{\\`}{\\'} | |
555 | ||
556 | \threecol{{\bf Classe de caract\`ere}}{{\bf Correspond}}% | |
557 | {{\bf Compl\'ement}} | |
558 | \threecol{Ensemble explicite}{[ {\rm$\ldots$} ]}{[^ {\rm$\ldots$} ]} | |
559 | \threecol{Caract\`ere de mot}{\\w}{\\W} | |
560 | \threecol{Caract\`ere avec la syntaxe {\it c}}{\\s{\it c}}{\\S{\it c}} | |
5e56e175 GM |
561 | } |
562 | ||
563 | \section{Jeux de caract\`eres internationaux} | |
564 | ||
5d993286 MC |
565 | \key{Pr\'eciser la langue principale}{C-x RET l} |
566 | \metax{Lister les m\'ethodes de saisie}{M-x list-input-methods} | |
567 | \key{Activer/d\'esactiver la m\'ethode de saisie}{C-\\} | |
568 | \key{Choisir le codage pour la commande suivante}{C-x RET c} | |
569 | \metax{Lister les codages}{M-x list-coding-systems} | |
570 | \metax{Choisir le codage pr\'ef\'er\'e}{M-x prefer-coding-system} | |
5e56e175 GM |
571 | |
572 | \section{Info} | |
573 | ||
5d993286 MC |
574 | \key{Lire une documentation Info}{C-h i} |
575 | \key{Rechercher une fonction/variable dans Info}{C-h S} | |
5e56e175 GM |
576 | \beginindentedkeys |
577 | ||
578 | Se d\'eplacer dans un n\oe{}ud : | |
579 | ||
5d993286 MC |
580 | \key{Page suivante}{SPC} |
581 | \key{Page pr\'ec\'edente}{DEL} | |
582 | \key{D\'ebut du n\oe{}ud}{. {\rm (point)}} | |
5e56e175 | 583 | |
5d993286 | 584 | Navigation entre n\oe{}uds : |
5e56e175 | 585 | |
5d993286 MC |
586 | \key{N\oe{}ud {\bf suivant}}{n} |
587 | \key{N\oe{}ud {\bf pr\'ec\'edent}}{p} | |
588 | \key{{\bf Remonter} d'un niveau}{u} | |
589 | \key{Choisir un sujet du menu par son nom}{m} | |
590 | \key{Choisir le {\it n\/}-i\`eme sujet (1--9)}{{\it n}} | |
591 | \key{Suivre une r\'ef\'erence crois\'ee (retour avec \kbd{l})}{f} | |
592 | \key{Revenir au dernier n\oe{}ud visit\'e}{l} | |
593 | \key{Aller au sommaire Info}{d} | |
594 | \key{Aller au n\oe{}ud le plus haut du manuel}{t} | |
595 | \key{Aller sur un n\oe{}ud par son nom}{g} | |
5e56e175 GM |
596 | |
597 | Autres : | |
598 | ||
5d993286 MC |
599 | \key{Aller au {\bf didacticiel} Info}{h} |
600 | \key{Rechercher un sujet dans l'index}{i} | |
601 | \key{Rechercher un n\oe{}ud par expr. rationnelle}{s} | |
602 | \key{{\bf Quitter} Info}{q} | |
5e56e175 GM |
603 | |
604 | \endindentedkeys | |
605 | ||
606 | \section{Registres} | |
607 | ||
5d993286 MC |
608 | \key{Sauver la r\'egion dans un registre}{C-x r s} |
609 | \key{Ins\'erer le contenu d'un registre}{C-x r i} | |
5e56e175 | 610 | |
5d993286 MC |
611 | \key{Sauver la valeur du point dans un registre}{C-x r SPC} |
612 | \key{Aller au point sauv\'e dans un registre}{C-x r j} | |
5e56e175 GM |
613 | |
614 | \section{Macros clavier} | |
615 | ||
5d993286 MC |
616 | \key{{\bf Lancer} la d\'efinition d'une macro clavier}{C-x (} |
617 | \key{{\bf Terminer} la d\'efinition d'une macro clavier}{C-x )} | |
618 | \key{{\bf Ex\'ecuter} la derni\`ere macro clavier d\'efinie}{C-x e} | |
619 | \key{Faire un ajout \`a la derni\`ere macro clavier}{C-u C-x (} | |
620 | \metax{Nommer la derni\`ere macro clavier}{M-x name-last-kbd-macro} | |
621 | \metax{En ins\'erer une d\'efinition Lisp}{M-x insert-kbd-macro} | |
5e56e175 GM |
622 | |
623 | \section{Commandes de gestion d'Emacs Lisp} | |
624 | ||
5d993286 MC |
625 | \key{\'Evaluer la {\bf s-expression} avant le point}{C-x C-e} |
626 | \key{\'Evaluer la {\bf defun} courante}{C-M-x} | |
627 | \metax{\'Evaluer la {\bf r\'egion}}{M-x eval-region} | |
628 | \key{Lire et \'evaluer dans le mini-tampon}{M-:} | |
629 | \metax{Charger depuis un r\'epertoire standard}{M-x load-library} | |
5e56e175 GM |
630 | |
631 | \section{Personnalisation simple} | |
632 | ||
5d993286 | 633 | \metax{Personnaliser les variables et les fontes}{M-x customize} |
5e56e175 GM |
634 | |
635 | % The intended audience here is the person who wants to make simple | |
636 | % customizations and knows Lisp syntax. | |
637 | ||
5d993286 | 638 | Exemples de d\'efinition globale de touches en Emacs Lisp : |
5e56e175 GM |
639 | |
640 | \beginexample% | |
a85e8979 MC |
641 | (global-set-key (kbd "C-c g") 'search-forward) |
642 | (global-set-key (kbd "M-\#") 'query-replace-regexp) | |
5e56e175 GM |
643 | \endexample |
644 | ||
645 | \section{\'Ecriture de commandes} | |
646 | ||
647 | \beginexample% | |
648 | (defun \<nom-commande> (\<args>) | |
5d993286 MC |
649 | "\<documentation>" |
650 | (interactive "\<template>") | |
5e56e175 GM |
651 | \<body>) |
652 | \endexample | |
653 | ||
654 | Exemple : | |
655 | ||
656 | \beginexample% | |
657 | (defun cette-ligne-en-haut-de-la-fenetre (line) | |
5d993286 | 658 | "Positionne la ligne courante en haut de la fen\^etre. |
5e56e175 GM |
659 | Avec ARG, place le point sur la ligne ARG." |
660 | (interactive "P") | |
661 | (recenter (if (null line) | |
662 | 0 | |
663 | (prefix-numeric-value line)))) | |
664 | \endexample | |
665 | ||
666 | La sp\'ecification \kbd{interactive} indique comment lire | |
667 | interactivement les param\`etres. Faites \kbd{C-h f interactive} pour | |
668 | plus de pr\'ecisions. | |
669 | ||
670 | \copyrightnotice | |
671 | ||
672 | \bye | |
673 | \f | |
674 | % Local variables: | |
a85e8979 | 675 | % compile-command: "pdftex fr-refcard" |
5e56e175 | 676 | % End: |