sk-refcard.tex 20.8 KB
Newer Older
1
% Reference Card for GNU Emacs version 21 on Unix systems
Gerd Moellmann's avatar
Gerd Moellmann committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

% Slovak hyphenation rules applied
\shyph

%**start of header
\newcount\columnsperpage

% This file can be printed with 1, 2, or 3 columns per page (see below).
% Specify how many you want here.  Nothing else needs to be changed.

\columnsperpage=1

% Copyright (c) 1987, 1993, 1996, 1997 Free Software Foundation, Inc.

% This file is part of GNU Emacs.

% GNU Emacs is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2, or (at your option)
% any later version.

% 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
% along with GNU Emacs; see the file COPYING.  If not, write to
% the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
% Boston, MA 02111-1307, USA.

% This file is intended to be processed by plain TeX (TeX82).
%
% The final reference card has six columns, three on each side.
% This file can be used to produce it in any of three ways:
% 1 column per page
%    produces six separate pages, each of which needs to be reduced to 80%.
%    This gives the best resolution.
% 2 columns per page
%    produces three already-reduced pages.
%    You will still need to cut and paste.
% 3 columns per page
%    produces two pages which must be printed sideways to make a
%    ready-to-use 8.5 x 11 inch reference card.
%    For this you need a dvi device driver that can print sideways.
% Which mode to use is controlled by setting \columnsperpage above.
%
% Author:
%  Stephen Gildea
51
%  Internet: gildea@stop.mail-abuse.org
Gerd Moellmann's avatar
Gerd Moellmann committed
52 53 54 55 56 57 58 59
%
% Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
% for their many good ideas.

% If there were room, it would be nice to see a section on Dired.

% Translated to Czech by Jan Buchal <buchal@brailcom.cz> in January 1999
% Corrections and improvements of the translation
Pavel Janík's avatar
Pavel Janík committed
60
% by Milan Zamazal <pdm@zamazal.org> in August 1999
Gerd Moellmann's avatar
Gerd Moellmann committed
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
% More work on better integration with GNU Emacs 21
% by Pavel Jank <Pavel@Janik.cz> in November 2000

% Translated to Slovak by Miroslav Vako <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{2.2}
\def\year{1997}

\def\shortcopyrightnotice{\vskip 1ex plus 2 fill
  \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
  Permissions on back.  v\versionnumber}}

\def\copyrightnotice{
\vskip 1ex plus 2 fill\begingroup\small
\centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
79
\centerline{v\versionnumber{} for GNU Emacs version 21, \year}
Gerd Moellmann's avatar
Gerd Moellmann committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
\centerline{designed by Stephen Gildea}

Permission is granted to make and distribute copies of
this card provided the copyright notice and this permission notice
are preserved on all copies.

For copies of the GNU Emacs manual, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

\endgroup}

% make \bye not \outer so that the \def\bye in the \else clause below
% can be scanned without complaint.
\def\bye{\par\vfill\supereject\end}

\newdimen\intercolumnskip	%horizontal space between columns
\newbox\columna			%boxes to hold columns already built
\newbox\columnb

\def\ncolumns{\the\columnsperpage}

101
\message{[\ncolumns\space
Gerd Moellmann's avatar
Gerd Moellmann committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115 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 144 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 174 175 176 177 178
  column\if 1\ncolumns\else s\fi\space per page]}

\def\scaledmag#1{ scaled \magstep #1}

% This multi-way format was designed by Stephen Gildea October 1986.
% Note that the 1-column format is fontfamily-independent.
\if 1\ncolumns			%one-column format uses normal size
  \hsize 4in
  \vsize 10in
  \voffset -.7in
  \font\titlefont=\fontname\tenbf \scaledmag3
  \font\headingfont=\fontname\tenbf \scaledmag2
  \font\smallfont=\fontname\sevenrm
  \font\smallsy=\fontname\sevensy

  \footline{\hss\folio}
  \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
\else				%2 or 3 columns uses prereduced size
  \hsize 3.2in
  \vsize 7.95in
  \hoffset -.75in
  \voffset -.745in
  \font\titlefont=csbx10 \scaledmag2
  \font\headingfont=csbx10 \scaledmag1
  \font\smallfont=csr6
  \font\smallsy=cmsy6
  \font\eightrm=csr8
  \font\eightbf=csbx8
  \font\eightit=csti8
  \font\eighttt=cstt8
  \font\eightmi=cmmi8
  \font\eightsy=cmsy8
  \textfont0=\eightrm
  \textfont1=\eightmi
  \textfont2=\eightsy
  \def\rm{\eightrm}
  \def\bf{\eightbf}
  \def\it{\eightit}
  \def\tt{\eighttt}
  \normalbaselineskip=.8\normalbaselineskip
  \normallineskip=.8\normallineskip
  \normallineskiplimit=.8\normallineskiplimit
  \normalbaselines\rm		%make definitions take effect

  \if 2\ncolumns
    \let\maxcolumn=b
    \footline{\hss\rm\folio\hss}
    \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
  \else \if 3\ncolumns
    \let\maxcolumn=c
    \nopagenumbers
  \else
    \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
    \errmessage{Illegal number of columns per page}
  \fi\fi

  \intercolumnskip=.46in
  \def\abc{a}
  \output={%			%see The TeXbook page 257
      % This next line is useful when designing the layout.
      %\immediate\write16{Column \folio\abc\space starts with \firstmark}
      \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
      \else\if a\abc
	\global\setbox\columna\columnbox \global\def\abc{b}
        %% in case we never use \columnb (two-column mode)
        \global\setbox\columnb\hbox to -\intercolumnskip{}
      \else
	\global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
  \def\multicolumnformat{\shipout\vbox{\makeheadline
      \hbox{\box\columna\hskip\intercolumnskip
        \box\columnb\hskip\intercolumnskip\columnbox}
      \makefootline}\advancepageno}
  \def\columnbox{\leftline{\pagebody}}

  \def\bye{\par\vfill\supereject
    \if a\abc \else\null\vfill\eject\fi
    \if a\abc \else\null\vfill\eject\fi
179
    \end}
Gerd Moellmann's avatar
Gerd Moellmann committed
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
\fi

% we won't be using math mode much, so redefine some of the characters
% we might want to talk about
\catcode`\^=12
\catcode`\_=12

\chardef\\=`\\
\chardef\{=`\{
\chardef\}=`\}

\hyphenation{mini-buf-fer}

\parindent 0pt
\parskip 1ex plus .5ex minus .5ex

\def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}

% newcolumn - force a new column.  Use sparingly, probably only for
% the first column of a page, which should have a title anyway.
\outer\def\newcolumn{\vfill\eject}

% title - page title.  Argument is title text.
\outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}

% section - new major section.  Argument is section name.
\outer\def\section#1{\par\filbreak
  \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
  \vskip 2ex plus 1ex minus 1.5ex}

\newdimen\keyindent

% beginindentedkeys...endindentedkeys - key definitions will be
% indented, but running text, typically used as headings to group
% definitions, will not.
\def\beginindentedkeys{\keyindent=1em}
\def\endindentedkeys{\keyindent=0em}
\endindentedkeys

% paralign - begin paragraph containing an alignment.
% If an \halign is entered while in vertical mode, a parskip is never
% inserted.  Using \paralign instead of \halign solves this problem.
\def\paralign{\vskip\parskip\halign}

% \<...> - surrounds a variable name in a code example
\def\<#1>{{\it #1\/}}

% kbd - argument is characters typed literally.  Like the Texinfo command.
\def\kbd#1{{\tt#1}\null}	%\null so not an abbrev even if period follows

% beginexample...endexample - surrounds literal text, such a code example.
% typeset in a typewriter font with line breaks preserved
\def\beginexample{\par\leavevmode\begingroup
  \obeylines\obeyspaces\parskip0pt\tt}
{\obeyspaces\global\let =\ }
\def\endexample{\endgroup}

% key - definition of a key.
% \key{description of key}{key-name}
% prints the description left-justified, and the key-name in a \kbd
% form near the right margin.
\def\key#1#2{\leavevmode\hbox to \hsize{\vtop
  {\hsize=.75\hsize\rightskip=1em
  \hskip\keyindent\relax#1}\kbd{#2}\hfil}}

\newbox\metaxbox
\setbox\metaxbox\hbox{\kbd{M-x }}
\newdimen\metaxwidth
\metaxwidth=\wd\metaxbox

% metax - definition of a M-x command.
% \metax{description of command}{M-x command-name}
% Tries to justify the beginning of the command name at the same place
% as \key starts the key name.  (The "M-x " sticks out to the left.)
\def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
  {\hskip\keyindent\relax#1\hfil}%
  \hskip -\metaxwidth minus 1fil
  \kbd{#2}\hfil}}

% threecol - like "key" but with two key names.
% for example, one for doing the action backward, and one for forward.
\def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
  &\kbd{#3}\hfil\quad\cr}

%**end of header


\title{GNU Emacs -- Referenn karta}

269
\centerline{(pre verziu 21)}
Gerd Moellmann's avatar
Gerd Moellmann committed
270 271 272

\section{Spustenie Emacsu}

273
Pre spustenie GNU~Emacsu~21 napte jeho meno: \kbd{emacs}
Gerd Moellmann's avatar
Gerd Moellmann committed
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 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667

Ako nata a editova sbory sa dozviete niie v~oddiele Sbory.


\section{Ukonenie Emacsu}

\key{pozastavenie (zmenenie do ikony v~X11)}{C-z}
\key{definitvny odchod z~Emacsu}{C-x C-c}

\section{Sbory}

\key{{\bf nata} sbor do Emacsu}{C-x C-f}
\key{{\bf uloi} sbor sp na disk}{C-x C-s}
\key{uloi {\bf vetky} sbory}{C-x s}
\key{{\bf vloi} obsah inho sboru do bufferu}{C-x i}
\key{zameni tento sbor inm sborom}{C-x C-v}
\key{zapsa buffer do zadanho sboru}{C-x C-w}
\key{vloi do systmu sprvy verzi}{C-x C-q}

\section{Pouvanie npovedy}

Systm npovedy je jednoduch. Stlate \kbd{C-h} (alebo \kbd{F1}) a sledujte
intrukcie. vodn {\bf ttorial} je mon spusti pomocou \kbd{C-h t}.

\key{odstrni okno s~npovedou}{C-x 1}
\key{rolova okno s~npovedou}{C-M-v}

\key{apropos: prkazy zodpovedajce reazcu}{C-h a}
\key{zobrazi funkciu danej klvesy}{C-h c}
\key{zobrazi popis funkcie}{C-h f}
\key{zobrazi informcie o~aktulnych mdoch}{C-h m}

\section{Opravy chb}

\key{{\bf prerui} vkladan alebo vykonvan prkaz}{C-g}
\metax{{\bf obnovi} sbor straten pdom systmu}{M-x recover-file}
\key{{\bf zrui} nechcen zmenu}{C-x u {\it n.} C-_}
\metax{vrti pvodn obsah bufferu}{M-x revert-buffer}
\key{prekresli \uv{rozpadnut} obrazovku}{C-l}

\section{Inkrementlne vyhadvanie}

\key{vyhada vpred}{C-s}
\key{vyhada vzad}{C-r}
\key{vyhada regulrny vraz}{C-M-s}
\key{vyhada regulrny vraz dozadu}{C-M-r}
\key{predchdzajci vyhadvan reazec}{M-p}
\key{nasledujc nov vyhadvan reazec}{M-n}
\key{ukoni inkrementlne vyhadvanie}{RET}
\key{zrui efekt poslednho zadanho znaku}{DEL}
\key{prerui prebiehajce vyhadvanie}{C-g}

alie \kbd{C-s} alebo \kbd{C-r} zopakuje vyhadvanie v~danom smere. Ak
Emacs vyhadva, \kbd{C-g} zru iba nenjden as reazca.


\shortcopyrightnotice

\section{Pohyb}

\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
\threecol{{\bf posuv o }}{{\bf vzad}}{{\bf vpred}}
\threecol{znak}{C-b}{C-f}
\threecol{slovo}{M-b}{M-f}
\threecol{riadok}{C-p}{C-n}
\threecol{na zaiatok alebo koniec riadku}{C-a}{C-e}
\threecol{vetu}{M-a}{M-e}
\threecol{odstavec}{M-\{}{M-\}}
\threecol{strnku}{C-x [}{C-x ]}
\threecol{symbolick vraz}{C-M-b}{C-M-f}
\threecol{funkciu}{C-M-a}{C-M-e}
\threecol{na zaiatok alebo koniec bufferu}{M-<}{M->}
}

\key{rolova na aliu obrazovku}{C-v}
\key{rolova na predchdzajcu obrazovku}{M-v}
\key{rolova vavo}{C-x <}
\key{rolova vpravo}{C-x >}
\key{aktulny riadok do stredu obrazovky}{C-u C-l}

\section{Ruenie a mazanie}

\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
\threecol{{\bf ruen objekt }}{{\bf vzad}}{{\bf vpred}}
\threecol{znak (mazanie, nie ruenie)}{DEL}{C-d}
\threecol{slovo}{M-DEL}{M-d}
\threecol{riadok (do konca)}{M-0 C-k}{C-k}
\threecol{veta}{C-x DEL}{M-k}
\threecol{symbolick vraz}{M-- C-M-k}{C-M-k}
}

\key{zrui {\bf oblas}}{C-w}
\key{skoprova oblas do schrnky}{M-w}
\key{zrui a po najbli vskyt znaku {\it znak}}{M-z {\it znak}}

\key{vhodi naposledy zruen objekt}{C-y}
\key{nahradi vhoden objekt predchdzajcim zruenm}{M-y}

\section{Oznaovanie}

\key{vloi znaku}{C-@ {\it n.} C-SPC}
\key{prehodi kurzor a znaku}{C-x C-x}

\key{oznai zadan poet {\bf slov}}{M-@}
\key{oznai {\bf odstavec}}{M-h}
\key{oznai {\bf strnku}}{C-x C-p}
\key{oznai {\bf symbolick vraz}}{C-M-@}
\key{oznai {\bf funkciu}}{C-M-h}
\key{oznai cel {\bf buffer}}{C-x h}

\section{Interaktvne nahradzovanie}

\key{interaktvne nahradi textov reazec}{M-\%}
\metax{s~pouitm regulrneho vrazu}{M-x query-replace-regexp}

Platn odpovede v~mde query-replace s

\key{{\bf nahradi} a s na alie}{SPC}
\key{nahradi a zosta na mieste}{,}
\key{{\bf skoi} na alie bez nahradenia}{DEL}
\key{zameni vetky zostvajce vskyty}{!}
\key{{\bf sp} na predchdzajci vskyt reazca}{^}
\key{{\bf koniec} nahradzovania}{RET}
\key{rekurzvne editovanie (ukon sa \kbd{C-M-c})}{C-r}

\section{Okn}

Ak s zobrazen dva prkazy, potom ten druh plat pre Xov okno.

\key{zrui vetky ostatn okn}{C-x 1}

{\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0
\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
\threecol{rozdeli okno na horn a doln}{C-x 2\ \ \ \ }{C-x 5 2}
\threecol{zrui toto okno}{C-x 0\ \ \ \ }{C-x 5 0}
}}
\key{rozdeli okno na av a prav}{C-x 3}

\key{rolova in okno}{C-M-v}

{\setbox0=\hbox{\kbd{0}}\advance\hsize by 2\wd0
\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
\threecol{prepn kurzor do inho okna}{C-x o}{C-x 5 o}

\threecol{vybra buffer v~inom okne}{C-x 4 b}{C-x 5 b}
\threecol{zobrazi buffer v~inom okne}{C-x 4 C-o}{C-x 5 C-o}
\threecol{otvori sbor v~inom okne}{C-x 4 f}{C-x 5 f}
\threecol{otvori sbor iba pre tanie v~inom okne}{C-x 4 r}{C-x 5 r}
\threecol{spusti Dired v~inom okne}{C-x 4 d}{C-x 5 d}
\threecol{njs tag v~inom okne}{C-x 4 .}{C-x 5 .}
}}

\key{zvi okno}{C-x ^}
\key{zi okno}{C-x \{}
\key{rozri okno}{C-x \}}

\section{Formtovanie}

\key{odsadi aktulny {\bf riadok} (poda mdu)}{TAB}
\key{odsadi {\bf oblas} (poda mdu)}{C-M-\\}
\key{odsadi {\bf symbolick vraz} (poda mdu)}{C-M-q}
\key{odsadi oblas napevno o~{\it argument\/} stpcov}{C-x TAB}

\key{vloi znak novho riadku za kurzor}{C-o}
\key{posun zbytok riadku zvisle dole}{C-M-o}
\key{zmaza przdne riadky okolo kurzoru}{C-x C-o}
\key{spoji riadok s~predchdzajcim (s~arg.~s~nasl.)}{M-^}
\key{zmaza przdne miesto okolo kurzoru}{M-\\}
\key{necha presne jednu medzeru okolo kurzoru}{M-SPC}

\key{zalomi odstavec}{M-q}
\key{nastavi stpec pre zalamovanie}{C-x f}
\key{nastavi prefix, ktorm zanaj riadky}{C-x .}
\key{nastavi font}{M-g}

\section{Zmena vekosti psmen}

\key{zmeni psmen slova na vek}{M-u}
\key{zmeni psmen slova na mal}{M-l}
\key{zmeni zaiaton psmeno slova na vek}{M-c}

\key{zmeni psmen oblasti na vek}{C-x C-u}
\key{zmeni psmen oblasti na mal}{C-x C-l}

\section{Minibuffer}

Nasledujce klvesy s platn pre minibuffer.

\key{doplni z~ponuky}{TAB}
\key{doplni do najbliieho slova}{SPC}
\key{doplni a vykona}{RET}
\key{zobrazi mon doplnenia}{?}
\key{predchdzajci prkaz z~minibufferu}{M-p}
\key{nov alebo implicitn prkaz z~minibufferu}{M-n}
\key{vyhada regulrny vraz v~histrii vzad}{M-r}
\key{vyhada regulrny vraz v~histrii vpred}{M-s}
\key{zrui prkaz}{C-g}

Stlate \kbd{C-x ESC ESC} pre editovanie a zopakovanie poslednho prkazu
z~minibufferu.  Stlate \kbd{F10} pre aktivciu menu v~minibufferi.

\newcolumn
\title{GNU Emacs -- Referenn karta}

\section{Buffery}

\key{vybra in buffer}{C-x b}
\key{zoznam vetkch bufferov}{C-x C-b}
\key{zrui buffer}{C-x k}

\section{Vmeny}

\key{prehodi {\bf znaky}}{C-t}
\key{prehodi {\bf slov}}{M-t}
\key{prehodi {\bf riadky}}{C-x C-t}
\key{prehodi {\bf symbolick vrazy}}{C-M-t}

\section{Kontrola pravopisu}

\key{kontrola pravopisu aktulneho slova}{M-\$}
\metax{kontrola pravopisu vetkch slov v  oblasti}{M-x ispell-region}
\metax{kontrola pravopisu celho bufferu}{M-x ispell-buffer}

\section{Tagy}

\key{njs tag (definciu)}{M-.}
\key{njs al vskyt tagu}{C-u M-.}
\metax{zada sbor s novmi tagmi}{M-x visit-tags-table}

\metax{vyhada reg.\ vraz v~sboroch s~tagmi}{M-x tags-search}
\metax{spusti nahradzovanie pre dotyn sbory}{M-x tags-query-replace}
\key{pokraova v~prehadvan alebo nahradzovan}{M-,}

\section{Prkazov interprt}

\key{vykona shellovsk prkaz}{M-!}
\key{vykona shellovsk prkaz nad oblasou}{M-|}
\key{prefiltrova oblas shellovskm prkazom}{C-u M-|}
\key{spusti shell v okne \kbd{*shell*}}{M-x shell}

\section{Obdniky}

\key{skoprova obdnik do registra}{C-x r r}
\key{zrui obdnik}{C-x r k}
\key{vhodi obdnik}{C-x r y}
\key{vloi obdnik medzier}{C-x r o}
\key{nahradi obdnik obdnikom medzier}{C-x r c}
\key{nahradi riadky obdniku zadanm reazcom}{C-x r t}

\section{Skratky}

\key{prida globlnu skratku}{C-x a g}
\key{prida loklnu skratku}{C-x a l}
\key{prida globlnu expanziu pre skratku }{C-x a i g}
\key{prida loklnu expanziu pre skratku}{C-x a i l}
\key{expandova skratku}{C-x a e}

\key{dynamick expanzia predchdzajceho slova}{M-/}

\section{Regulrne vrazy}

\key{ubovon znak okrem novho riadku}{. {\rm(teka)}}
\key{iadne alebo niekoko opakovan}{*}
\key{jedno alebo viac opakovan}{+}
\key{iadne alebo jedno opakovanie}{?}
\key{zrui zvltny vznam znaku {\it c\/} vo vraze}{\\{\it c}}
\key{alternatva (\uv{alebo})}{\\|}
\key{skupina}{\\( {\rm$\ldots$} \\)}
\key{rovnak text ako {\it n\/}-t skupina}{\\{\it n}}
\key{hranice slova}{\\b}
\key{nie hranice slova}{\\B}

\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
\threecol{{\bf element}}{{\bf zaiatok}}{{\bf koniec}}
\threecol{riadok}{^}{\$}
\threecol{slovo}{\\<}{\\>}
\threecol{buffer}{\\`}{\\'}

\threecol{{\bf trieda znakov}}{{\bf zodpoved}}{{\bf nezodpoved}}
\threecol{explicitn mnoina}{[ {\rm$\ldots$} ]}{[^ {\rm$\ldots$} ]}
\threecol{slovotvorn znak}{\\w}{\\W}
\threecol{znak so syntaxou {\it c}}{\\s{\it c}}{\\S{\it c}}
}

\section{Medzinrodn znakov sady}

\metax{zada hlavn jazyk}{M-x set-language-environment}
\metax{zobrazi vetky vstupn metdy}{M-x list-input-methods}
\key{zapn alebo vypn vstupn metdu}{C-\\}
\key{zada kdovanie pre nasledujci prkaz}{C-x RET c}
\metax{zobrazi vetky kdovania}{M-x list-coding-systems}
\metax{zmeni preferovan kdovanie}{M-x prefer-coding-system}

\section{Info}

\key{spusti Info}{C-h i}
\key{njs zadan funkciu alebo premenn v~Info}{C-h C-i}
\beginindentedkeys

Pohyb vo vntri uzlov:

\key{rolovanie vpred}{SPC}
\key{rolovanie vzad}{DEL}
\key{na zaiatok uzla}{. {\rm (teka)}}

Pohyb medzi uzlami:

\key{{\bf al} uzol}{n}
\key{{\bf predchdzajci} uzol}{p}
\key{{\bf nadraden} uzol}{u}
\key{vybra z~menu poda nzvu}{m}
\key{vybra {\it n\/}-t poloku menu (1--9)}{{\it n}}
\key{najbli nasledujci krov odkaz (nvrat \kbd{l})}{f}
\key{vrti sa do naposledy prezeranho uzlu}{l}
\key{vrti sa do adresra uzlov}{d}
\key{prejs do ktorhokovek uzlu poda mena}{g}

alie:

\key{spusti {\bf ttorial} k~Infu}{h}
\key{{\bf skoni} Info}{q}
\key{vyhada reazec v uzloch}{M-s}

\endindentedkeys

\section{Registre}

\key{uloi oblas do registra}{C-x r s}
\key{vloi obsah registra do buffera}{C-x r i}

\key{uloi pozciu kurzoru do registra}{C-x r SPC}
\key{skoi na pozciu uloen v~registri}{C-x r j}

\section{Klvesov makr}

\key{{\bf zaa} definovanie klvesovho makra}{C-x (}
\key{{\bf skoni} definovanie klvesovho makra}{C-x )}
\key{{\bf vykona} naposledy definovan makro}{C-x e}
\key{pripoji k~poslednmu klvesovmu makru}{C-u C-x (}
\metax{pomenova posledn makro}{M-x name-last-kbd-macro}
\metax{vloi do buffera lispov definciu}{M-x insert-kbd-macro}

\section{Prkazy svisiace s~Emacs Lispom}

\key{vyhodnoti {\bf vraz} pred kurzorom}{C-x C-e}
\key{vyhodnoti {\bf funkciu} pod kurzorom}{C-M-x}
\metax{vyhodnoti {\bf oblas}}{M-x eval-region}
\key{nata a vyhodnoti vraz v~minibufferi}{M-:}
\metax{nata sbor zo systmovho adresra}{M-x load-library}

\section{Jednoduch prispsobenia}

\metax{nastavi premenn a faces}{M-x customize}

% The intended audience here is the person who wants to make simple
% customizations and knows Lisp syntax.

Defincia veobecnej klvesovej skratky v~Emacs Lispe (prklad):

\beginexample%
(global-set-key "\\C-cg" 'goto-line)
(global-set-key "\\M-\#" 'query-replace-regexp)
\endexample

\section{Zpis prkazov}

\beginexample%
(defun \<command-name> (\<args>)
  "\<documentation>" (interactive "\<template>")
  \<body>)
\endexample

Prklad:

\beginexample%
(defun this-line-to-top-of-window (line)
  "Reposition line point is on to top of window.
With ARG, put point on line ARG."
  (interactive "P")
  (recenter (if (null line)
                0
              (prefix-numeric-value line))))
\endexample

pecifikcia \kbd{interactive} vrav, ako interaktvne nata ar\-gu\-men\-ty.
Viac sa dozviete po vykonan \kbd{C-h f interactive}.

\copyrightnotice

\bye

% Local variables:
% compile-command: "csplain sk-refcard"
% End: