37387
|
1 %
|
|
2 % Title: GNU Emacs Survival Card
|
|
3 % Author: Wlodek Bzyl <matwb@univ.gda.pl>
|
|
4 %
|
|
5 % $Revision: 1.4 $
|
|
6 % $Date: 2001/03/22 23:07:14 $
|
|
7 %
|
|
8 %**start of header
|
|
9
|
|
10 % User interface is `plain.tex' and macros described below
|
|
11 %
|
|
12 % \title{CARD TITLE}{for version 21}
|
|
13 % \section{NAME}
|
|
14 % optional paragraphs separated with \askip amount of vertical space
|
|
15 % \key{KEY-NAME} description of key or
|
|
16 % \mkey{M-x LONG-LISP-NAME} description of Elisp function
|
|
17 %
|
|
18 % \kbd{ARG} -- argument is typed literally
|
|
19
|
|
20 \def\plainfmtname{plain}
|
|
21 \ifx\fmtname\plainfmtname
|
|
22 \else
|
|
23 \errmessage{This file requires `plain' format to be typeset correctly}
|
|
24 \endinput
|
|
25 \fi
|
|
26
|
|
27 % Copyright (c) 2000 Free Software Foundation, Inc.
|
|
28
|
|
29 % This file is part of GNU Emacs.
|
|
30
|
|
31 % GNU Emacs is free software; you can redistribute it and/or modify
|
|
32 % it under the terms of the GNU General Public License as published by
|
|
33 % the Free Software Foundation; either version 2, or (at your option)
|
|
34 % any later version.
|
|
35
|
|
36 % GNU Emacs is distributed in the hope that it will be useful,
|
|
37 % but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
38 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
39 % GNU General Public License for more details.
|
|
40
|
|
41 % You should have received a copy of the GNU General Public License
|
|
42 % along with GNU Emacs; see the file COPYING. If not, write to
|
|
43 % the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
44 % Boston, MA 02111-1307, USA.
|
|
45
|
|
46 % Slovak hyphenation rules applied
|
|
47 \shyph
|
|
48
|
|
49 % Translated to Czech by Pavel Jan�k <Pavel@Janik.cz> in March 2001
|
|
50 % Translated to Slovak by Miroslav Vasko <vasko@debian.cz> in March 2001
|
|
51
|
|
52 % Process the file with `csplain' from the `CSTeX' distribution (included
|
|
53 % e.g. in the TeX Live CD).
|
|
54
|
|
55 \def\versionnumber{1.0}
|
|
56 \def\year{2000}
|
|
57
|
|
58 \def\copyrightnotice{\penalty-1\vfill
|
|
59 \vbox{\smallfont\baselineskip=0.8\baselineskip\raggedcenter
|
|
60 Copyright \year\ Free Software Foundation, Inc.\break
|
|
61 Verzia \versionnumber{} pre GNU Emacs 21, apr�l 2000\break
|
|
62 W{\l}odek Bzyl (matwb@univ.gda.pl)\break
|
|
63 Do �e�tiny prelo�il Pavel Jan�k (Pavel@Janik.cz)
|
|
64 Do sloven�iny prelo�il Miroslav Va�ko (vasko@debian.cz)
|
|
65
|
|
66 K�pie tohto dokumentu m�ete vytv�ra� a 麹ri�
|
|
67 za predpokladu, �e bud� obsahova� t�to pozn�mku
|
|
68 o autorsk�ch pr�vach.\par}}
|
|
69
|
|
70 \hsize 3.2in
|
|
71 \vsize 7.95in
|
|
72 \font\titlefont=csss10 scaled 1200
|
|
73 \font\headingfont=csss10
|
|
74 \font\smallfont=csr6
|
|
75 \font\smallsy=cmsy6
|
|
76 \font\eightrm=csr8
|
|
77 \font\eightbf=csbx8
|
|
78 \font\eightit=csti8
|
|
79 \font\eighttt=cstt8
|
|
80 \font\eightmi=csmi8
|
|
81 \font\eightsy=cmsy8
|
|
82 \font\eightss=cmss8
|
|
83 \textfont0=\eightrm
|
|
84 \textfont1=\eightmi
|
|
85 \textfont2=\eightsy
|
|
86 \def\rm{\eightrm} \rm
|
|
87 \def\bf{\eightbf}
|
|
88 \def\it{\eightit}
|
|
89 \def\tt{\eighttt}
|
|
90 \def\ss{\eightss}
|
|
91 \baselineskip=0.8\baselineskip
|
|
92
|
|
93 \newdimen\intercolumnskip % horizontal space between columns
|
|
94 \intercolumnskip=0.5in
|
|
95
|
|
96 % The TeXbook, p. 257
|
|
97 \let\lr=L \newbox\leftcolumn
|
|
98 \output={\if L\lr
|
|
99 \global\setbox\leftcolumn\columnbox \global\let\lr=R
|
|
100 \else
|
|
101 \doubleformat \global\let\lr=L\fi}
|
|
102 \def\doubleformat{\shipout\vbox{\makeheadline
|
|
103 \leftline{\box\leftcolumn\hskip\intercolumnskip\columnbox}
|
|
104 \makefootline}
|
|
105 \advancepageno}
|
|
106 \def\columnbox{\leftline{\pagebody}}
|
|
107
|
|
108 \def\newcolumn{\vfil\eject}
|
|
109
|
|
110 \def\bye{\par\vfil\supereject
|
|
111 \if R\lr \null\vfil\eject\fi
|
|
112 \end}
|
|
113
|
|
114 \outer\def\title#1#2{{\titlefont\centerline{#1}}\vskip 1ex plus 0.5ex
|
|
115 \centerline{\ss#2}
|
|
116 \vskip2\baselineskip}
|
|
117
|
|
118 \outer\def\section#1{\filbreak
|
|
119 \bskip
|
|
120 \leftline{\headingfont #1}
|
|
121 \askip}
|
|
122 \def\bskip{\vskip 2.5ex plus 0.25ex }
|
|
123 \def\askip{\vskip 0.75ex plus 0.25ex}
|
|
124
|
|
125 \newdimen\defwidth \defwidth=0.25\hsize
|
|
126 \def\hang{\hangindent\defwidth}
|
|
127
|
|
128 \def\textindent#1{\noindent\llap{\hbox to \defwidth{\tt#1\hfil}}\ignorespaces}
|
|
129 \def\key{\par\hangafter=0\hang\textindent}
|
|
130
|
|
131 \def\mtextindent#1{\noindent\hbox{\tt#1\quad}\ignorespaces}
|
|
132 \def\mkey{\par\hangafter=1\hang\mtextindent}
|
|
133
|
|
134 \def\kbd#{\bgroup\tt \let\next= }
|
|
135
|
|
136 \newdimen\raggedstretch
|
|
137 \newskip\raggedparfill \raggedparfill=0pt plus 1fil
|
|
138 \def\nohyphens
|
|
139 {\hyphenpenalty10000\exhyphenpenalty10000\pretolerance10000}
|
|
140 \def\raggedspaces
|
|
141 {\spaceskip=0.3333em\relax
|
|
142 \xspaceskip=0.5em\relax}
|
|
143 \def\raggedright
|
|
144 {\raggedstretch=6em
|
|
145 \nohyphens
|
|
146 \rightskip=0pt plus \raggedstretch
|
|
147 \raggedspaces
|
|
148 \parfillskip=\raggedparfill
|
|
149 \relax}
|
|
150 \def\raggedcenter
|
|
151 {\raggedstretch=6em
|
|
152 \nohyphens
|
|
153 \rightskip=0pt plus \raggedstretch
|
|
154 \leftskip=\rightskip
|
|
155 \raggedspaces
|
|
156 \parfillskip=0pt
|
|
157 \relax}
|
|
158
|
|
159 \chardef\\=`\\
|
|
160
|
|
161 \raggedright
|
|
162 \nopagenumbers
|
|
163 \parindent 0pt
|
|
164 \interlinepenalty=10000
|
|
165 \hoffset -0.2in
|
|
166 %\voffset 0.2in
|
|
167
|
|
168 %**end of header
|
|
169
|
|
170
|
|
171 \title{Karta\ \ pre\ \ pre�itie\ \ s\ \ GNU\ \ Emacsom}{pre verziu 21}
|
|
172
|
|
173 V~nasleduj�com texte \kbd{C-z} znamen�: stla�te kl�vesu {\it Ctrl}, dr�te ju
|
|
174 a s淼asne stla�te kl�vesu `\kbd{z}'. \kbd{M-z} znamen�, �e
|
|
175 s淼asne s kl�vesou {\it Meta\/} stla蓁te kl�vesu `\kbd{z}' ({\it Meta\/} je
|
|
176 v粫�inou ozna�en� ako {\it Alt\/}) alebo m�ete pou�i� stla�enie
|
|
177 kl�vesy {\it Esc\/} a potom `\kbd{z}'.
|
|
178
|
|
179
|
|
180 \section{Spustenie Emacsu}
|
|
181
|
|
182 Pre spustenie GNU Emacsu jednoducho nap躪te jeho meno: \kbd{emacs}.
|
|
183 Emacs rozde�uje r�mec na nieko�ko �ast�:
|
|
184 riadok menu,
|
|
185 buffer s editovan�m textom,
|
|
186 tzv. mode line popisuj�ca buffer nad �ou
|
|
187 a minibuffer v poslednom riadku.
|
|
188 \askip
|
|
189 \key{C-x C-c} ukon�enie Emacsu
|
|
190 \key{C-x C-f} editovanie s�boru; tento pr�kaz vyu壌va minibuffer na pre蓁tanie
|
|
191 mena s�boru; tento pr�kaz pou�ite aj vtedy, ak chcete
|
|
192 vytvori� nov� s�bor zadan�ho mena
|
|
193 \key{C-x C-s} ulo�i� s�bor
|
|
194 \key{C-x k} zatvori� buffer
|
|
195 \key{C-g} vo v粫�ine situ�ci�: zastavenie pr�ve vykon�vanej �innosti,
|
|
196 zru�enie zad�vania pr�kazu a~pod.
|
|
197 \key{C-x u} obnovi�
|
|
198
|
|
199 \section{Pohyb}
|
|
200
|
|
201 \key{C-l} presun aktu�lneho riadku do stredu okna
|
|
202 \key{C-x b} prepnutie do in�ho bufferu
|
|
203 \key{M-<} presun na za�iatok bufferu
|
|
204 \key{M->} presun na koniec bufferu
|
|
205 \key{M-x goto-line} presun na riadok zadan�ho 蓁sla
|
|
206
|
|
207 \section{Viac okien}
|
|
208
|
|
209 \key{C-x 0} odstr�nenie aktu�lneho okna
|
|
210 \key{C-x 1} aktu�lne okno sa stane jedin�m oknom
|
|
211 \key{C-x 2} rozdelenie okna horizont�lne
|
|
212 \key{C-x 3} rozdelenie okna vertik�lne
|
|
213 \key{C-x o} presun do in�ho okna
|
|
214
|
|
215 \section{Regi�ny}
|
|
216
|
|
217 Emacs definuje `regi�n' ako priestor medzi {\it zna�kou\/} a
|
|
218 {\it bodom}. Zna�ka je nastaven� pomocou \kbd{C-{\it space}}.
|
|
219 Bod je v mieste aktu�lnej poz�cie kurzoru.
|
|
220 \askip
|
|
221 \key{M-h} ozna� cel� odstavec
|
|
222 \key{C-x h} ozna� cel� buffer
|
|
223
|
|
224 \section{Vystrihnutie a kop�rovanie}
|
|
225
|
|
226 \key{C-w} vystrihni regi�n
|
|
227 \key{M-w} skop�ruj regi�n do kill-ringu
|
|
228 \key{C-k} vystrihni text od kurzora do konca riadku
|
|
229 \key{M-DEL} vystrihni slovo
|
|
230 \key{C-y} vlo� sp篁 posledn� vystrihnut� text (kombin�cia kl�ves \kbd{C-w C-y}
|
|
231 m�e by� pou�it� pre presuny textov)
|
|
232 \key{M-y} nahra� naposledy vlo�en� text predch�dzaj�cim vystrihnut�m textom
|
|
233
|
|
234 \section{Vyh�ad�vanie}
|
|
235
|
|
236 \key{C-s} h�adaj re�azec
|
|
237 \key{C-r} h�adaj re�azec smerom vzad
|
|
238 \key{RET} ukon�i h�adanie
|
|
239 \key{M-C-s} h�adaj regul�rny v�raz
|
|
240 \key{M-C-r} h�adaj regul�rny v�raz smerom vzad
|
|
241 \askip
|
|
242 Kombin�ciu \kbd{C-s} alebo \kbd{C-r} m�ete pou�i� aj na opakovan� h�adanie
|
|
243 t�m ist�m smerom.
|
|
244
|
|
245 \section{Zna�ky (tags)}
|
|
246
|
|
247 Tabu�ky zna�iek (tags) zaznamen�vaj� polohu funkci� a proced�r, glob�lnych
|
|
248 premenn�ch, d�tov�ch typov a in�ch. Pre vytvorenie tabu�ky zna�iek spustite
|
|
249 pr�kaz `{\tt etags} {\it vstupn�\_s�bory}' v pr�kazovom interpr�tereri.
|
|
250 \askip
|
|
251 \key{M-.} n�jdi defin�cu
|
|
252 \key{C-u M-.} n�jdi �al麹 v�skyt defin�cie
|
|
253 \key{M-*} cho� tam, odkia� bola volan� posledn� \kbd{M-.}
|
|
254 \mkey{M-x tags-query-replace} spusti query-replace na v�etk�ch s�boroch
|
|
255 zaznamenan�ch v tabu�ke zna�iek.
|
|
256 \key{M-,} pokra�uj v poslednom h�adan� zna�ky alebo query-replace
|
|
257
|
|
258 \section{Preklady}
|
|
259
|
|
260 \key{M-x compile} prelo� k�d v akt�vnom okne
|
|
261 \key{C-c C-c} cho� na posledn� chybu preklada�a, v okne prekladu
|
|
262 \key{C-x `} v okne so zdrojov�m textom
|
|
263
|
|
264 \section{Dired, editor adres�rov}
|
|
265
|
|
266 \key{C-x d} spusti Dired
|
|
267 \key{d} ozna� tento s�bor na zmazanie
|
|
268 \key{\~{}} ozna� v�etky z�lohy na zmazanie
|
|
269 \key{u} odstr癇 v�etky zna�ky na zmazanie
|
|
270 \key{x} zma� s�bory ozna�en� na zmazanie
|
|
271 \key{C} kop�ruj s�bor
|
|
272 \key{g} obnov buffer Diredu
|
|
273 \key{f} otvor� s�bor v aktu�lnom riadku
|
|
274 \key{s} prepni medzi trieden�m pod�a abecedy a d�tumu/�asu
|
|
275
|
|
276 \section{罷tanie a posielanie po�ty}
|
|
277
|
|
278 \key{M-x rmail} za�ni 蓁ta� po�tu
|
|
279 \key{q} skon�i 蓁tanie po�ty
|
|
280 \key{h} uk畩 hlavi�ky
|
|
281 \key{d} ozna� aktu�lnu spr�vu na zmazanie
|
|
282 \key{x} zma� v�etky spr�vy ozna�en� na zmazanie
|
|
283
|
|
284 \key{C-x m} nov� spr�va
|
|
285 \key{C-c C-c} po�li spr�vu a prepni sa do in�ho bufferu
|
|
286 \key{C-c C-f C-c} presu� sa na hlavi�ku `CC', a ak neexistuje, tak ju
|
|
287 vytvor
|
|
288
|
|
289 \section{R�zne}
|
|
290
|
|
291 \key{M-q} zarovnaj odstavec
|
|
292 \key{M-/} dopl� dynamicky predch�dzaj�ce slovo
|
|
293 \key{C-z} ikonizuj (preru�) Emacs
|
|
294 \mkey{M-x revert-buffer} nahra� text editovan�ho s�boru t�m ist�m s�borom z~disku
|
|
295
|
|
296 \section{Nahradzovanie}
|
|
297
|
|
298 \key{M-\%} interakt�vne h�adaj a nahradzuj
|
|
299 \key{M-C-\%} s pou�it�m regul�rnych v�razov
|
|
300 \askip
|
|
301 Mo�n� odpovede v m�de h�adania s�
|
|
302 \askip
|
|
303 \key{SPC} nahra� tento v�skyt; cho� na �al麹
|
|
304 \key{,} nahra� tento v�skyt a skon�i
|
|
305 \key{DEL} tento v�skyt nenahradzuj a cho� �alej
|
|
306 \key{!} nahra� v�etky �al�ie v�skyty
|
|
307 \key{\^{}} sp篁 na predch�dzaj�ci v�skyt
|
|
308 \key{RET} skon�i query-replace
|
|
309 \key{C-r} za�ni rekurz�vne editovanie (\kbd{M-C-c} ho skon蓁)
|
|
310
|
|
311 \section{Regul�rne v�razy}
|
|
312
|
|
313 \key{. {\rm(te�ka)}} �ubovo�n� znak okrem znaku nov�ho riadku
|
|
314 \key{*} �iadne alebo viac opakovan�
|
|
315 \key{+} jedno alebo viac opakovan�
|
|
316 \key{?} �iadne alebo jedno opakovanie
|
|
317 \key{[$\ldots$]} ozna�uje triedu znakov
|
|
318 \key{[\^{}$\ldots$]} neguje triedu znakov
|
|
319
|
|
320 \key{\\{\it c}} uvedenie znaku, ktor� by mal inak �peci�lny v�znam
|
|
321 v~regul�rnom v�raze
|
|
322
|
|
323 \key{$\ldots$\\|$\ldots$\\|$\ldots$} vyhovuje jednej z alternat�v (\uv{alebo})
|
|
324 \key{\\( $\ldots$ \\)} zoskupenie nieko�k�ch vzorkov do jedn�ho
|
|
325 \key{\\{\it n}} to ist� ako {\it n\/}-t� skupina
|
|
326
|
|
327 \key{\^{}} vyhovuje na za�iatku riadku
|
|
328 \key{\$} vyhovuje na konci riadku
|
|
329
|
|
330 \key{\\w} vyhovuje znaku, ktor� m�e by� s淼as�ou slova
|
|
331 \key{\\W} vyhovuje znaku, ktor� nem�e by� s淼as�ou slova
|
|
332 \key{\\<} vyhovuje na za�iatku slova
|
|
333 \key{\\>} vyhovuje na konci slova
|
|
334 \key{\\b} vyhovuje medzislovn�m medzer�m
|
|
335 \key{\\B} vyhovuje medzer�m, ktor� nie s� medzislovn�
|
|
336
|
|
337 \section{Registre}
|
|
338
|
|
339 \key{C-x r s} ulo� regi�n do registra
|
|
340 \key{C-x r i} vlo� obsah registra do bufferu
|
|
341
|
|
342 \key{C-x r SPC} ulo� aktu�lnu poz�ciu kurzora do registra
|
|
343 \key{C-x r j} sko� na poz�ciu kurzoru ulo�en� v registri
|
|
344
|
|
345 \section{Obd緇niky}
|
|
346
|
|
347 \key{C-x r r} skop�ruj obd緇nik do registra
|
|
348 \key{C-x r k} vystrihni obd緇nik
|
|
349 \key{C-x r y} vlo� obd緇nik
|
|
350 \key{C-x r t} uvedenie ka�d�ho riadku re�azcom
|
|
351
|
|
352 \key{C-x r o} otvor obd緇nik, posu� text vpravo
|
|
353 \key{C-x r c} vypr�zdni obd緇nik
|
|
354
|
|
355 \section{Pr�kazov� interpr�ter}
|
|
356
|
|
357 \key{M-x shell} spusti pr�kazov� interpr�ter v Emacsu
|
|
358 \key{M-!} spusti pr�kaz pr�kazov�ho interpr�tera
|
|
359 \key{M-|} spusti pr�kaz pr�kazov�ho interpr�tera na regi�ne
|
|
360 \key{C-u M-|} filtruj regi�n cez pr�kaz pr�kazov�ho interpr�tera
|
|
361
|
|
362 \section{Kontrola pravopisu}
|
|
363
|
|
364 \key{M-\$} skontroluj pravopis slova pod kurzorom
|
|
365 \mkey{M-x ispell-region} skontroluj pravopis v�etk�ch slov v regi�ne
|
|
366 \mkey{M-x ispell-buffer} skontroluj pravopis v bufferi
|
|
367
|
|
368 \section{Mezin�rodn� znakov� sady}
|
|
369
|
|
370 \key{C-x RET C-\\} zvo� a aktivuj vstupn� met�du pre aktu�lny buffer
|
|
371 \key{C-\\} aktivuj alebo deaktivuj vstupn� met�du
|
|
372 \mkey{M-x list-input-methods} zobraz zoznam v�etk�ch vstupn�ch met�d
|
|
373 \mkey{M-x set-language-environment} �pecifikuj hlavn� jazyk
|
|
374
|
|
375 \key{C-x RET c} nastav k�dovac� syst�m pre nasleduj�ci pr�kaz
|
|
376 \mkey{M-x find-file-literally} edituj s�bor bez ak�chko�vek konverzi�
|
|
377
|
|
378 \mkey{M-x list-coding-systems} uk畩 v�etky k�dovacie syst�my
|
|
379 \mkey{M-x prefer-coding-system} zvo� preferovan� k�dovac� syst�m
|
|
380
|
|
381 \section{Kl�vesov� makr�}
|
|
382
|
|
383 \key{C-x (} za�ni defin�ciu kl�vesov�ho makra
|
|
384 \key{C-x )} ukon�i defin�ciu kl�vesov�ho makra
|
|
385 \key{C-x e} spusti naposledy definovan� kl�vesov� makro
|
|
386 \key{C-u C-x (} pridaj do naposledy definovan�ho kl�vesov�ho makra
|
|
387 \mkey{M-x name-last-kbd-macro} pomenuj naposledy definovan� makro
|
|
388
|
|
389 \section{Jednoduch� nastavenie}
|
|
390
|
|
391 \key{M-x customize} jednoduch� nastavenie
|
|
392
|
|
393 \section{N�poveda}
|
|
394
|
|
395 Emacs dop纈a pr�kazy. Ak stla蓁te \kbd{M-x} {\it tab\/} alebo {\it
|
|
396 space\/}, dostanete zoznam pr�kazov Emacsu.
|
|
397 \askip
|
|
398 \key{C-h} n�poveda Emacsu
|
|
399 \key{C-h t} spust� t�torial Emacsu
|
|
400 \key{C-h i} spust� Info, prezera� dokument�cie
|
|
401 \key{C-h a} uk畩e pr�kazy vyhovuj�ce zadan�mu re�azcu (apropos)
|
|
402 \key{C-h k} zobraz� dokument�ciu funkcie spustenej pomocou zadanej kl�vesy
|
|
403 \askip
|
|
404 Emacs pracuje v r�znych {\it m�doch}, ktor� upravuj� chovanie
|
|
405 Emacsu pre editovan� text dan�ho typu. Mode line obsahuje men� aktu�lnych
|
|
406 m�dov v z�tvork�ch.
|
|
407 \askip
|
|
408 \key{C-h m} zobraz dokument�ciu aktu�lnych m�dov.
|
|
409
|
|
410 \copyrightnotice
|
|
411
|
|
412 \bye
|
|
413
|
|
414 % Local variables:
|
|
415 % compile-command: "csplain sk-survival"
|
|
416 % End:
|