sk-survival.tex 12.6 KB
Newer Older
Gerd Moellmann's avatar
Gerd Moellmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13
%
% Title:  GNU Emacs Survival Card
% Author: Wlodek Bzyl <matwb@univ.gda.pl>
%
%**start of header

% User interface is `plain.tex' and macros described below
%
% \title{CARD TITLE}{for version 21}
% \section{NAME}
% optional paragraphs separated with \askip amount of vertical space
% \key{KEY-NAME} description of key or
% \mkey{M-x LONG-LISP-NAME} description of Elisp function
14
%
Gerd Moellmann's avatar
Gerd Moellmann committed
15 16 17 18 19 20 21
% \kbd{ARG} -- argument is typed literally

\def\plainfmtname{plain}
\ifx\fmtname\plainfmtname
\else
  \errmessage{This file requires `plain' format to be typeset correctly}
  \endinput
22
\fi
Gerd Moellmann's avatar
Gerd Moellmann committed
23

Michaël Cadilhac's avatar
Michaël Cadilhac committed
24 25 26 27 28 29
% PDF output layout.  0 for A4, 1 for letter (US), a `l' is added for
% a landscape layout.

\input pdflayout.sty
\pdflayout=(0)

30
% Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005,
Glenn Morris's avatar
Glenn Morris committed
31
%   2006, 2007, 2008, 2009  Free Software Foundation, Inc.
Gerd Moellmann's avatar
Gerd Moellmann committed
32 33 34

% This file is part of GNU Emacs.

35
% GNU Emacs is free software: you can redistribute it and/or modify
Gerd Moellmann's avatar
Gerd Moellmann committed
36
% it under the terms of the GNU General Public License as published by
37 38
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
Gerd Moellmann's avatar
Gerd Moellmann committed
39 40 41 42 43 44 45

% GNU Emacs is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.

% You should have received a copy of the GNU General Public License
46
% along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
Gerd Moellmann's avatar
Gerd Moellmann committed
47 48 49 50 51 52 53 54 55 56 57

% Slovak hyphenation rules applied
\shyph

% Translated to Czech by Pavel Jank <Pavel@Janik.cz> in March 2001
% Translated to Slovak by Miroslav Vasko <vasko@debian.cz> in March 2001

% Process the file with `csplain' from the `CSTeX' distribution (included
% e.g. in the TeX Live CD).

\def\versionnumber{1.0}
Glenn Morris's avatar
Glenn Morris committed
58
\def\versionemacs{21}
59
\def\year{2009}                 % latest copyright year
Gerd Moellmann's avatar
Gerd Moellmann committed
60 61 62 63

\def\copyrightnotice{\penalty-1\vfill
  \vbox{\smallfont\baselineskip=0.8\baselineskip\raggedcenter
    Copyright \year\ Free Software Foundation, Inc.\break
Glenn Morris's avatar
Glenn Morris committed
64
    Verzia \versionnumber{} pre GNU Emacs \versionemacs, aprl 2000\break
Gerd Moellmann's avatar
Gerd Moellmann committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
    W{\l}odek Bzyl (matwb@univ.gda.pl)\break
    Do etiny preloil Pavel Jank (Pavel@Janik.cz)
    Do sloveniny preloil Miroslav Vako (vasko@debian.cz)

    Kpie tohto dokumentu mete vytvra a ri
    za predpokladu, e bud obsahova tto poznmku
    o autorskch prvach.\par}}

\hsize 3.2in
\vsize 7.95in
\font\titlefont=csss10 scaled 1200
\font\headingfont=csss10
\font\smallfont=csr6
\font\smallsy=cmsy6
\font\eightrm=csr8
\font\eightbf=csbx8
\font\eightit=csti8
\font\eighttt=cstt8
\font\eightmi=csmi8
\font\eightsy=cmsy8
\font\eightss=cmss8
\textfont0=\eightrm
\textfont1=\eightmi
\textfont2=\eightsy
\def\rm{\eightrm} \rm
\def\bf{\eightbf}
\def\it{\eightit}
\def\tt{\eighttt}
\def\ss{\eightss}
\baselineskip=0.8\baselineskip

\newdimen\intercolumnskip % horizontal space between columns
\intercolumnskip=0.5in

% The TeXbook, p. 257
\let\lr=L \newbox\leftcolumn
101
\output={\if L\lr
Gerd Moellmann's avatar
Gerd Moellmann committed
102 103 104 105 106 107 108 109 110 111 112 113 114
    \global\setbox\leftcolumn\columnbox \global\let\lr=R
  \else
       \doubleformat \global\let\lr=L\fi}
\def\doubleformat{\shipout\vbox{\makeheadline
    \leftline{\box\leftcolumn\hskip\intercolumnskip\columnbox}
    \makefootline}
  \advancepageno}
\def\columnbox{\leftline{\pagebody}}

\def\newcolumn{\vfil\eject}

\def\bye{\par\vfil\supereject
  \if R\lr \null\vfil\eject\fi
115
  \end}
Gerd Moellmann's avatar
Gerd Moellmann committed
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143

\outer\def\title#1#2{{\titlefont\centerline{#1}}\vskip 1ex plus 0.5ex
   \centerline{\ss#2}
   \vskip2\baselineskip}

\outer\def\section#1{\filbreak
  \bskip
  \leftline{\headingfont #1}
  \askip}
\def\bskip{\vskip 2.5ex plus 0.25ex }
\def\askip{\vskip 0.75ex plus 0.25ex}

\newdimen\defwidth \defwidth=0.25\hsize
\def\hang{\hangindent\defwidth}

\def\textindent#1{\noindent\llap{\hbox to \defwidth{\tt#1\hfil}}\ignorespaces}
\def\key{\par\hangafter=0\hang\textindent}

\def\mtextindent#1{\noindent\hbox{\tt#1\quad}\ignorespaces}
\def\mkey{\par\hangafter=1\hang\mtextindent}

\def\kbd#{\bgroup\tt \let\next= }

\newdimen\raggedstretch
\newskip\raggedparfill \raggedparfill=0pt plus 1fil
\def\nohyphens
   {\hyphenpenalty10000\exhyphenpenalty10000\pretolerance10000}
\def\raggedspaces
144
   {\spaceskip=0.3333em\relax
Gerd Moellmann's avatar
Gerd Moellmann committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
    \xspaceskip=0.5em\relax}
\def\raggedright
   {\raggedstretch=6em
    \nohyphens
    \rightskip=0pt plus \raggedstretch
    \raggedspaces
    \parfillskip=\raggedparfill
    \relax}
\def\raggedcenter
   {\raggedstretch=6em
    \nohyphens
    \rightskip=0pt plus \raggedstretch
    \leftskip=\rightskip
    \raggedspaces
    \parfillskip=0pt
    \relax}

\chardef\\=`\\

\raggedright
\nopagenumbers
\parindent 0pt
\interlinepenalty=10000
\hoffset -0.2in
%\voffset 0.2in

%**end of header


Glenn Morris's avatar
Glenn Morris committed
174
\title{Karta\ \ pre\ \ preitie\ \ s\ \ GNU\ \ Emacsom}{pre verziu \versionemacs}
Gerd Moellmann's avatar
Gerd Moellmann committed
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419

V~nasledujcom texte \kbd{C-z} znamen: stlate klvesu {\it Ctrl}, drte ju
a sasne stlate klvesu `\kbd{z}'. \kbd{M-z} znamen, e
sasne s klvesou {\it Meta\/} stlate klvesu `\kbd{z}' ({\it Meta\/} je
vinou oznaen ako {\it Alt\/}) alebo mete poui stlaenie
klvesy {\it Esc\/} a potom `\kbd{z}'.


\section{Spustenie Emacsu}

Pre spustenie GNU Emacsu jednoducho napte jeho meno: \kbd{emacs}.
Emacs rozdeuje rmec na niekoko ast:
  riadok menu,
  buffer s editovanm textom,
  tzv. mode line popisujca buffer nad ou
  a minibuffer v poslednom riadku.
\askip
\key{C-x C-c} ukonenie Emacsu
\key{C-x C-f} editovanie sboru; tento prkaz vyuva minibuffer na pretanie
              mena sboru; tento prkaz pouite aj vtedy, ak chcete
              vytvori nov sbor zadanho mena
\key{C-x C-s} uloi sbor
\key{C-x k} zatvori buffer
\key{C-g} vo vine situci: zastavenie prve vykonvanej innosti,
              zruenie zadvania prkazu a~pod.
\key{C-x u} obnovi

\section{Pohyb}

\key{C-l} presun aktulneho riadku do stredu okna
\key{C-x b} prepnutie do inho bufferu
\key{M-<} presun na zaiatok bufferu
\key{M->} presun na koniec bufferu
\key{M-x goto-line} presun na riadok zadanho sla

\section{Viac okien}

\key{C-x 0} odstrnenie aktulneho okna
\key{C-x 1} aktulne okno sa stane jedinm oknom
\key{C-x 2} rozdelenie okna horizontlne
\key{C-x 3} rozdelenie okna vertiklne
\key{C-x o} presun do inho okna

\section{Reginy}

Emacs definuje `regin' ako priestor medzi {\it znakou\/} a
{\it bodom}. Znaka je nastaven pomocou \kbd{C-{\it space}}.
Bod je v mieste aktulnej pozcie kurzoru.
\askip
\key{M-h} ozna cel odstavec
\key{C-x h} ozna cel buffer

\section{Vystrihnutie a koprovanie}

\key{C-w} vystrihni regin
\key{M-w} skopruj regin do kill-ringu
\key{C-k} vystrihni text od kurzora do konca riadku
\key{M-DEL} vystrihni slovo
\key{C-y} vlo sp posledn vystrihnut text (kombincia klves \kbd{C-w C-y}
          me by pouit pre presuny textov)
\key{M-y} nahra naposledy vloen text predchdzajcim vystrihnutm textom

\section{Vyhadvanie}

\key{C-s} hadaj reazec
\key{C-r} hadaj reazec smerom vzad
\key{RET} ukoni hadanie
\key{M-C-s} hadaj regulrny vraz
\key{M-C-r} hadaj regulrny vraz smerom vzad
\askip
Kombinciu \kbd{C-s} alebo \kbd{C-r} mete poui aj na opakovan hadanie
tm istm smerom.

\section{Znaky (tags)}

Tabuky znaiek (tags) zaznamenvaj polohu funkci a procedr, globlnych
premennch, dtovch typov a inch. Pre vytvorenie tabuky znaiek spustite
prkaz `{\tt etags} {\it vstupn\_sbory}' v prkazovom interprtereri.
\askip
\key{M-.} njdi defincu
\key{C-u M-.} njdi al vskyt defincie
\key{M-*} cho tam, odkia bola volan posledn \kbd{M-.}
\mkey{M-x tags-query-replace} spusti query-replace na vetkch sboroch
zaznamenanch v tabuke znaiek.
\key{M-,} pokrauj v poslednom hadan znaky alebo query-replace

\section{Preklady}

\key{M-x compile} prelo kd v aktvnom okne
\key{C-c C-c} cho na posledn chybu prekladaa, v okne prekladu
\key{C-x `} v okne so zdrojovm textom

\section{Dired, editor adresrov}

\key{C-x d} spusti Dired
\key{d} ozna tento sbor na zmazanie
\key{\~{}} ozna vetky zlohy na zmazanie
\key{u} odstr vetky znaky na zmazanie
\key{x} zma sbory oznaen na zmazanie
\key{C} kopruj sbor
\key{g} obnov buffer Diredu
\key{f} otvor sbor v aktulnom riadku
\key{s} prepni medzi triedenm poda abecedy a dtumu/asu

\section{tanie a posielanie poty}

\key{M-x rmail} zani ta potu
\key{q} skoni tanie poty
\key{h} uk hlaviky
\key{d} ozna aktulnu sprvu na zmazanie
\key{x} zma vetky sprvy oznaen na zmazanie

\key{C-x m} nov sprva
\key{C-c C-c} poli sprvu a prepni sa do inho bufferu
\key{C-c C-f C-c} presu sa na hlaviku `CC', a ak neexistuje, tak ju
vytvor

\section{Rzne}

\key{M-q} zarovnaj odstavec
\key{M-/} dopl dynamicky predchdzajce slovo
\key{C-z} ikonizuj (preru) Emacs
\mkey{M-x revert-buffer} nahra text editovanho sboru tm istm sborom z~disku

\section{Nahradzovanie}

\key{M-\%} interaktvne hadaj a nahradzuj
\key{M-C-\%} s pouitm regulrnych vrazov
\askip
Mon odpovede v mde hadania s
\askip
\key{SPC} nahra tento vskyt; cho na al
\key{,} nahra tento vskyt a skoni
\key{DEL} tento vskyt nenahradzuj a cho alej
\key{!} nahra vetky alie vskyty
\key{\^{}} sp na predchdzajci vskyt
\key{RET} skoni query-replace
\key{C-r} zani rekurzvne editovanie (\kbd{M-C-c} ho skon)

\section{Regulrne vrazy}

\key{. {\rm(teka)}} ubovon znak okrem znaku novho riadku
\key{*} iadne alebo viac opakovan
\key{+} jedno alebo viac opakovan
\key{?} iadne alebo jedno opakovanie
\key{[$\ldots$]} oznauje triedu znakov
\key{[\^{}$\ldots$]} neguje triedu znakov

\key{\\{\it c}} uvedenie znaku, ktor by mal inak pecilny vznam
v~regulrnom vraze

\key{$\ldots$\\|$\ldots$\\|$\ldots$} vyhovuje jednej z alternatv (\uv{alebo})
\key{\\( $\ldots$ \\)} zoskupenie niekokch vzorkov do jednho
\key{\\{\it n}} to ist ako {\it n\/}-t skupina

\key{\^{}} vyhovuje na zaiatku riadku
\key{\$} vyhovuje na konci riadku

\key{\\w} vyhovuje znaku, ktor me by sasou slova
\key{\\W} vyhovuje znaku, ktor neme by sasou slova
\key{\\<} vyhovuje na zaiatku slova
\key{\\>} vyhovuje na konci slova
\key{\\b} vyhovuje medzislovnm medzerm
\key{\\B} vyhovuje medzerm, ktor nie s medzislovn

\section{Registre}

\key{C-x r s} ulo regin do registra
\key{C-x r i} vlo obsah registra do bufferu

\key{C-x r SPC} ulo aktulnu pozciu kurzora do registra
\key{C-x r j} sko na pozciu kurzoru uloen v registri

\section{Obdniky}

\key{C-x r r} skopruj obdnik do registra
\key{C-x r k} vystrihni obdnik
\key{C-x r y} vlo obdnik
\key{C-x r t} uvedenie kadho riadku reazcom

\key{C-x r o} otvor obdnik, posu text vpravo
\key{C-x r c} vyprzdni obdnik

\section{Prkazov interprter}

\key{M-x shell} spusti prkazov interprter v Emacsu
\key{M-!} spusti prkaz prkazovho interprtera
\key{M-|} spusti prkaz prkazovho interprtera na regine
\key{C-u M-|} filtruj regin cez prkaz prkazovho interprtera

\section{Kontrola pravopisu}

\key{M-\$} skontroluj pravopis slova pod kurzorom
\mkey{M-x ispell-region} skontroluj pravopis vetkch slov v regine
\mkey{M-x ispell-buffer} skontroluj pravopis v bufferi

\section{Mezinrodn znakov sady}

\key{C-x RET C-\\} zvo a aktivuj vstupn metdu pre aktulny buffer
\key{C-\\} aktivuj alebo deaktivuj vstupn metdu
\mkey{M-x list-input-methods} zobraz zoznam vetkch vstupnch metd
\mkey{M-x set-language-environment} pecifikuj hlavn jazyk

\key{C-x RET c} nastav kdovac systm pre nasledujci prkaz
\mkey{M-x find-file-literally} edituj sbor bez akchkovek konverzi

\mkey{M-x list-coding-systems} uk vetky kdovacie systmy
\mkey{M-x prefer-coding-system} zvo preferovan kdovac systm

\section{Klvesov makr}

\key{C-x (} zani definciu klvesovho makra
\key{C-x )} ukoni definciu klvesovho makra
\key{C-x e} spusti naposledy definovan klvesov makro
\key{C-u C-x (} pridaj do naposledy definovanho klvesovho makra
\mkey{M-x name-last-kbd-macro} pomenuj naposledy definovan makro

\section{Jednoduch nastavenie}

\key{M-x customize} jednoduch nastavenie

\section{Npoveda}

Emacs dopa prkazy. Ak stlate \kbd{M-x} {\it tab\/} alebo {\it
space\/}, dostanete zoznam prkazov Emacsu.
\askip
\key{C-h} npoveda Emacsu
\key{C-h t} spust ttorial Emacsu
\key{C-h i} spust Info, prezera dokumentcie
\key{C-h a} uke prkazy vyhovujce zadanmu reazcu (apropos)
\key{C-h k} zobraz dokumentciu funkcie spustenej pomocou zadanej klvesy
\askip
Emacs pracuje v rznych {\it mdoch}, ktor upravuj chovanie
Emacsu pre editovan text danho typu. Mode line obsahuje men aktulnych
mdov v ztvorkch.
\askip
\key{C-h m} zobraz dokumentciu aktulnych mdov.

\copyrightnotice

\bye

% Local variables:
% compile-command: "csplain sk-survival"
% End:
Miles Bader's avatar
Miles Bader committed
420 421

% arch-tag: 126389ad-40b2-4bf9-ac1d-e5105d0986b9