mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
667 lines
21 KiB
TeX
667 lines
21 KiB
TeX
% Reference Card for GNU Emacs version 20 on Unix systems
|
||
|
||
% Czech hyphenation rules applied
|
||
\chyph
|
||
|
||
%**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, 2001 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
|
||
% Internet: gildea@mit.edu
|
||
%
|
||
% 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
|
||
% by Milan Zamazal <pdm@freesoft.cz> in August 1999
|
||
% More work on better integration with GNU Emacs 21
|
||
% by Pavel Jan<61>k <Pavel@Janik.cz> in November 2000
|
||
|
||
% 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.}
|
||
\centerline{v\versionnumber{} for GNU Emacs version 20, June \year}
|
||
\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}
|
||
|
||
\message{[\ncolumns\space
|
||
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
|
||
\end}
|
||
\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 -- Referen<65>n<EFBFBD> karta}
|
||
|
||
\centerline{(pro verzi 20)}
|
||
|
||
\section{Spu<EFBFBD>t<EFBFBD>n<EFBFBD> Emacsu}
|
||
|
||
Pro vstup do GNU~Emacsu~20 napi<70>te jeho jm<6A>no: \kbd{emacs}
|
||
|
||
Jak na<6E><61>tat a editovat soubory se dozv<7A>te n<><6E>e v~odd<64>le Soubory.
|
||
|
||
|
||
\section{Opu<EFBFBD>t<EFBFBD>n<EFBFBD> Emacsu}
|
||
|
||
\key{pozastaven<EFBFBD> Emacsu (ikonizace v~X11)}{C-z}
|
||
\key{definitivn<EFBFBD> odchod z~Emacsu}{C-x C-c}
|
||
|
||
\section{Soubory}
|
||
|
||
\key{{\bf na<6E><61>st} souboru do Emacsu}{C-x C-f}
|
||
\key{{\bf ulo<6C>it} soubor zp<7A>t na disk}{C-x C-s}
|
||
\key{ulo<EFBFBD>it {\bf v<>echny} soubory}{C-x s}
|
||
\key{{\bf vlo<6C>it} obsahu jin<69>ho souboru do bufferu}{C-x i}
|
||
\key{zam<EFBFBD>nit tento soubor jin<69>m souborem}{C-x C-v}
|
||
\key{zapsat buffer do zadan<61>ho souboru}{C-x C-w}
|
||
\key{vlo<EFBFBD>it do syst<73>mu spr<70>vy verz<72>}{C-x C-q}
|
||
|
||
\section{Pou<EFBFBD><EFBFBD>v<EFBFBD>n<EFBFBD> n<>pov<6F>dy}
|
||
|
||
Syst<EFBFBD>m n<>pov<6F>dy je snadn<64>. Stiskn<6B>te \kbd{C-h} (nebo \kbd{F1}) a sledujte
|
||
instrukce. <20>vodn<64> {\bf tutori<72>l} lze spustit pomoc<6F> \kbd{C-h t}.
|
||
|
||
\key{odstranit okno s~n<>pov<6F>dou}{C-x 1}
|
||
\key{rolovat okno s~n<>pov<6F>dou}{C-M-v}
|
||
|
||
\key{apropos: p<><70>kazy odpov<6F>daj<61>c<EFBFBD> <20>et<65>zci}{C-h a}
|
||
\key{zobrazit funkci dan<61> kl<6B>vesy}{C-h c}
|
||
\key{zobrazit popis funkce}{C-h f}
|
||
\key{zobrazit informace o~aktu<74>ln<6C>ch m<>dech}{C-h m}
|
||
|
||
\section{Opravy chyb}
|
||
|
||
\key{{\bf p<>eru<72>it} zad<61>van<61> nebo vykon<6F>van<61> p<><70>kaz}{C-g}
|
||
\metax{{\bf obnovit} soubor ztracen<65> p<>dem syst<73>mu}{M-x recover-file}
|
||
\key{{\bf zru<72>it} necht<68>nou zm<7A>nu}{C-x u {\it n.} C-_}
|
||
\metax{vr<EFBFBD>tit p<>vodn<64> obsah bufferu}{M-x revert-buffer}
|
||
\key{p<EFBFBD>ekreslit \uv{rozpadlou} obrazovku}{C-l}
|
||
|
||
\section{P<EFBFBD><EFBFBD>r<EFBFBD>stkov<EFBFBD> vyhled<65>v<EFBFBD>n<EFBFBD>}
|
||
|
||
\key{vyhledat dop<6F>edu}{C-s}
|
||
\key{vyhledat dozadu}{C-r}
|
||
\key{vyhledat regul<75>rn<72> v<>raz}{C-M-s}
|
||
\key{vyhledat regul<75>rn<72> v<>raz dozadu}{C-M-r}
|
||
|
||
\key{p<EFBFBD>edchoz<EFBFBD> vyhled<65>van<61> <20>et<65>zec}{M-p}
|
||
\key{n<EFBFBD>sleduj<EFBFBD>c<EFBFBD> nov<6F>j<EFBFBD><6A> vyhled<65>van<61> <20>et<65>zec}{M-n}
|
||
\key{ukon<EFBFBD>it inkrement<6E>ln<6C> vyhled<65>v<EFBFBD>n<EFBFBD>}{RET}
|
||
\key{zru<EFBFBD>it efekt posledn<64>ho zadan<61>ho znaku}{DEL}
|
||
\key{p<EFBFBD>eru<EFBFBD>it prob<6F>haj<61>c<EFBFBD> vyhled<65>v<EFBFBD>n<EFBFBD>}{C-g}
|
||
|
||
Dal<EFBFBD><EFBFBD> \kbd{C-s} nebo \kbd{C-r} zopakuje vyhled<65>n<EFBFBD> v~dan<61>m sm<73>ru. Pokud
|
||
Emacs vyhled<65>v<EFBFBD>, \kbd{C-g} zru<72><75> pouze nenalezenou <20><>st <20>et<65>zce.
|
||
|
||
|
||
\shortcopyrightnotice
|
||
|
||
\section{Pohyb}
|
||
|
||
\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
|
||
\threecol{{\bf posun o }}{{\bf dozadu}}{{\bf dop<6F>edu}}
|
||
\threecol{znak}{C-b}{C-f}
|
||
\threecol{slovo}{M-b}{M-f}
|
||
\threecol{<EFBFBD><EFBFBD>dek}{C-p}{C-n}
|
||
\threecol{na za<7A><61>tek nebo konec <20><>dku}{C-a}{C-e}
|
||
\threecol{v<EFBFBD>tu}{M-a}{M-e}
|
||
\threecol{odstavec}{M-\{}{M-\}}
|
||
\threecol{str<EFBFBD>nku}{C-x [}{C-x ]}
|
||
\threecol{symbolick<EFBFBD> v<>raz}{C-M-b}{C-M-f}
|
||
\threecol{funkci}{C-M-a}{C-M-e}
|
||
\threecol{na za<7A><61>tek nebo konec bufferu}{M-<}{M->}
|
||
}
|
||
|
||
\key{rolovat na dal<61><6C> obrazovku}{C-v}
|
||
\key{rolovat na p<>edchoz<6F> obrazovku}{M-v}
|
||
\key{rolovat vlevo}{C-x <}
|
||
\key{rolovat vpravo}{C-x >}
|
||
\key{aktu<EFBFBD>ln<EFBFBD> <20><>dek do st<73>edu obrazovky}{C-u C-l}
|
||
|
||
\section{Ru<EFBFBD>en<EFBFBD> a maz<61>n<EFBFBD>}
|
||
|
||
\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
|
||
\threecol{{\bf ru<72>en<65> objekt }}{{\bf dozadu}}{{\bf dop<6F>edu}}
|
||
\threecol{znak (maz<61>n<EFBFBD>, ne ru<72>en<65>)}{DEL}{C-d}
|
||
\threecol{slovo}{M-DEL}{M-d}
|
||
\threecol{<EFBFBD><EFBFBD>dek (do konce)}{M-0 C-k}{C-k}
|
||
\threecol{v<EFBFBD>ta}{C-x DEL}{M-k}
|
||
\threecol{symbolick<EFBFBD> v<>raz}{M-- C-M-k}{C-M-k}
|
||
}
|
||
|
||
\key{zru<EFBFBD>it {\bf oblast}}{C-w}
|
||
\key{zkop<EFBFBD>rovat oblast do schr<68>nky}{M-w}
|
||
\key{zru<EFBFBD>it a<> po nejbli<6C><69><EFBFBD> v<>skyt znaku {\it znak}}{M-z {\it znak}}
|
||
|
||
\key{vhodit naposledy zru<72>en<65> objekt}{C-y}
|
||
\key{nahradit vhozen<65> objekt p<>edchoz<6F>m zru<72>en<65>m}{M-y}
|
||
|
||
\section{Ozna<EFBFBD>ov<EFBFBD>n<EFBFBD>}
|
||
|
||
\key{vlo<EFBFBD>it zna<6E>ku}{C-@ {\it n.} C-SPC}
|
||
\key{prohodit kurzor a zna<6E>ku}{C-x C-x}
|
||
|
||
\key{ozna<EFBFBD>it zadan<61> po<70>et {\bf slov}}{M-@}
|
||
\key{ozna<EFBFBD>it {\bf odstavec}}{M-h}
|
||
\key{ozna<EFBFBD>it {\bf str<74>nku}}{C-x C-p}
|
||
\key{ozna<EFBFBD>it {\bf symbolick<63> v<>raz}}{C-M-@}
|
||
\key{ozna<EFBFBD>it {\bf funkci}}{C-M-h}
|
||
\key{ozna<EFBFBD>it cel<65> {\bf buffer}}{C-x h}
|
||
|
||
\section{Interaktivn<EFBFBD> nahrazov<6F>n<EFBFBD>}
|
||
|
||
\key{interaktivn<EFBFBD> nahradit textov<6F> <20>et<65>zec}{M-\%}
|
||
\metax{s~u<>it<69>m regul<75>rn<72>ho v<>razu}{M-x query-replace-regexp}
|
||
|
||
Platn<EFBFBD> odpov<6F>di v~m<>du query-replace jsou
|
||
|
||
\key{{\bf z<>m<EFBFBD>nu prov<6F>st} a j<>t na dal<61><6C>}{SPC}
|
||
\key{z<EFBFBD>m<EFBFBD>nu prov<6F>st a z<>stat na m<>st<73>}{,}
|
||
\key{{\bf sko<6B>it} na dal<61><6C> bez proveden<65> z<>m<EFBFBD>ny}{DEL}
|
||
\key{zam<EFBFBD>nit v<>echny zb<7A>vaj<61>c<EFBFBD> v<>skyty}{!}
|
||
\key{{\bf zp<7A>t} na p<>edchoz<6F> v<>skyt <20>et<65>zce}{^}
|
||
\key{{\bf konec} nahrazov<6F>n<EFBFBD>}{RET}
|
||
\key{rekurzivn<EFBFBD> editace (ukon<6F><6E> se \kbd{C-M-c})}{C-r}
|
||
|
||
\section{Okna}
|
||
|
||
Jestli<EFBFBD>e jsou zobrazeny dva p<><70>kazy, pak ten druh<75> plat<61> pro X okno.
|
||
|
||
\key{zru<EFBFBD>it v<>echna ostatn<74> okna}{C-x 1}
|
||
|
||
{\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0
|
||
\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
|
||
\threecol{rozd<EFBFBD>lit okno na horn<72> a doln<6C>}{C-x 2\ \ \ \ }{C-x 5 2}
|
||
\threecol{zru<EFBFBD>it toto okno}{C-x 0\ \ \ \ }{C-x 5 0}
|
||
}}
|
||
\key{rozd<EFBFBD>lit okno na lev<65> a prav<61>}{C-x 3}
|
||
|
||
\key{rolovat jin<69> 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{p<EFBFBD>epnout kurzor do jin<69>ho okna}{C-x o}{C-x 5 o}
|
||
|
||
\threecol{vybrat buffer v~jin<69>m okn<6B>}{C-x 4 b}{C-x 5 b}
|
||
\threecol{zobrazit buffer v~jin<69>m okn<6B>}{C-x 4 C-o}{C-x 5 C-o}
|
||
\threecol{otev<EFBFBD><EFBFBD>t soubor v~jin<69>m okn<6B>}{C-x 4 f}{C-x 5 f}
|
||
\threecol{otev<EFBFBD><EFBFBD>t soubor jen pro <20>ten<65> v~jin<69>m okn<6B>}{C-x 4 r}{C-x 5 r}
|
||
\threecol{spustit Dired v~jin<69>m okn<6B>}{C-x 4 d}{C-x 5 d}
|
||
\threecol{naj<EFBFBD>t tag v~jin<69>m okn<6B>}{C-x 4 .}{C-x 5 .}
|
||
}}
|
||
|
||
\key{zv<EFBFBD>t<EFBFBD>it okno}{C-x ^}
|
||
\key{z<EFBFBD><EFBFBD>it okno}{C-x \{}
|
||
\key{roz<EFBFBD><EFBFBD><EFBFBD>it okno}{C-x \}}
|
||
|
||
\section{Form<EFBFBD>tov<EFBFBD>n<EFBFBD>}
|
||
|
||
\key{odsadit aktu<74>ln<6C> {\bf <20><>dek} (dle m<>du)}{TAB}
|
||
\key{odsadit {\bf oblast} (dle m<>du)}{C-M-\\}
|
||
\key{odsadit {\bf symbolick<63> v<>raz} (dle m<>du)}{C-M-q}
|
||
\key{odsadit oblast napevno o~{\it argument\/} sloupc<70>}{C-x TAB}
|
||
|
||
\key{vlo<EFBFBD>it znak nov<6F>ho <20><>dku za kurzor}{C-o}
|
||
\key{posunout zbytek <20><>dku svisle dol<6F>}{C-M-o}
|
||
\key{smazat pr<70>zdn<64> <20><>dky okolo kurzoru}{C-x C-o}
|
||
\key{spojit <20><>dek s~p<>edchoz<6F>m (s~arg.~s~n<>sl.)}{M-^}
|
||
\key{smazat pr<70>zdn<64> m<>sto kolem kurzoru}{M-\\}
|
||
\key{nechat p<>esn<73> jednu mezeru kolem kurzoru}{M-SPC}
|
||
|
||
\key{zalomit odstavec}{M-q}
|
||
\key{nastavit sloupec pro zalamov<6F>n<EFBFBD>}{C-x f}
|
||
\key{nastavit prefix, kter<65>m za<7A><61>naj<61> <20><>dky}{C-x .}
|
||
\key{nastavit font}{M-g}
|
||
|
||
\section{Zm<EFBFBD>na velikosti p<>smen}
|
||
|
||
\key{zm<EFBFBD>nit p<>smena slova na velk<6C>}{M-u}
|
||
\key{zm<EFBFBD>nit p<>smena slova na mal<61>}{M-l}
|
||
\key{zm<EFBFBD>nit po<70><6F>te<74>n<EFBFBD> p<>smeno slova na velk<6C>}{M-c}
|
||
|
||
\key{zm<EFBFBD>nit p<>smena oblasti na velk<6C>}{C-x C-u}
|
||
\key{zm<EFBFBD>nit p<>smena oblasti na mal<61>}{C-x C-l}
|
||
|
||
\section{Minibuffer}
|
||
|
||
N<EFBFBD>sleduj<EFBFBD>c<EFBFBD> kl<6B>vesy jsou platn<74> pro minibuffer.
|
||
|
||
\key{doplnit z~nab<61>dky}{TAB}
|
||
\key{doplnit do nejbli<6C><69><EFBFBD>ho slova}{SPC}
|
||
\key{doplnit a vykonat}{RET}
|
||
\key{zobrazit mo<6D>n<EFBFBD> dopln<6C>n<EFBFBD>}{?}
|
||
\key{p<EFBFBD>edchoz<EFBFBD> p<><70>kaz z~minibufferu}{M-p}
|
||
\key{nov<EFBFBD>j<EFBFBD><EFBFBD> nebo implicitn<74> p<><70>kaz z~minibufferu}{M-n}
|
||
\key{vyhledat regul<75>rn<72> v<>raz v~historii vzad}{M-r}
|
||
\key{vyhledat regul<75>rn<72> v<>raz v~historii vp<76>ed}{M-s}
|
||
\key{zru<EFBFBD>it p<><70>kaz}{C-g}
|
||
|
||
Stiskn<EFBFBD>te \kbd{C-x ESC ESC} pro editaci a zopakov<6F>n<EFBFBD> posledn<64>ho p<><70>kazu
|
||
z~minibufferu. Stiskn<6B>te \kbd{F10} pro aktivaci menu v~minibufferu.
|
||
|
||
\newcolumn
|
||
\title{GNU Emacs -- Referen<65>n<EFBFBD> karta}
|
||
|
||
\section{Buffery}
|
||
|
||
\key{vybrat jin<69> buffer}{C-x b}
|
||
\key{seznam v<>ech buffer<65>}{C-x C-b}
|
||
\key{zru<EFBFBD>it buffer}{C-x k}
|
||
|
||
\section{V<EFBFBD>m<EFBFBD>ny}
|
||
|
||
\key{p<EFBFBD>ehodit {\bf znaky}}{C-t}
|
||
\key{p<EFBFBD>ehodit {\bf slova}}{M-t}
|
||
\key{p<EFBFBD>ehodit {\bf <20><>dky}}{C-x C-t}
|
||
\key{p<EFBFBD>ehodit {\bf symbolick<63> v<>razy}}{C-M-t}
|
||
|
||
\section{Kontrola pravopisu}
|
||
|
||
\key{kontrola pravopisu aktu<74>ln<6C>ho slova}{M-\$}
|
||
\metax{kontrola pravopisu v<>ech slov v oblasti}{M-x ispell-region}
|
||
\metax{kontrola pravopisu cel<65>ho bufferu}{M-x ispell-buffer}
|
||
|
||
\section{Tagy}
|
||
|
||
\key{naj<EFBFBD>t tag (definici)}{M-.}
|
||
\key{naj<EFBFBD>t dal<61><6C> v<>skyt tagu}{C-u M-.}
|
||
\metax{zadat soubor s nov<6F>mi tagy}{M-x visit-tags-table}
|
||
|
||
\metax{vyhledat reg.\ v<EFBFBD>raz v~souborech s~tagy}{M-x tags-search}
|
||
\metax{spustit nahrazov<6F>n<EFBFBD> pro ony soubory}{M-x tags-query-replace}
|
||
\key{pokra<EFBFBD>ovat v~prohled<65>v<EFBFBD>n<EFBFBD> nebo nahrazov<6F>n<EFBFBD>}{M-,}
|
||
|
||
\section{P<EFBFBD><EFBFBD>kazov<EFBFBD> interpret}
|
||
|
||
\key{vykonat shellov<6F> p<><70>kaz}{M-!}
|
||
\key{vykonat shellov<6F> p<><70>kaz na oblast}{M-|}
|
||
\key{zfiltrovat oblast shellov<6F>m p<><70>kazem}{C-u M-|}
|
||
\key{spustit shell v okn<6B> \kbd{*shell*}}{M-x shell}
|
||
|
||
\section{Obd<EFBFBD>ln<EFBFBD>ky}
|
||
|
||
\key{zkop<EFBFBD>rovat obd<62>ln<6C>k do registru}{C-x r r}
|
||
\key{zru<EFBFBD>it obd<62>ln<6C>k}{C-x r k}
|
||
\key{vhodit obd<62>ln<6C>k}{C-x r y}
|
||
\key{vlo<EFBFBD>it obd<62>ln<6C>k mezer}{C-x r o}
|
||
\key{nahradit obd<62>ln<6C>k obd<62>ln<6C>kem mezer}{C-x r c}
|
||
\key{nahradit <20><>dky obd<62>ln<6C>ku zadan<61>m <20>et<65>zcem}{C-x r t}
|
||
|
||
\section{Zkratky}
|
||
|
||
\key{p<EFBFBD>idat glob<6F>ln<6C> zkratku}{C-x a g}
|
||
\key{p<EFBFBD>idat lok<6F>ln<6C> zkratku}{C-x a l}
|
||
\key{p<EFBFBD>idat glob<6F>ln<6C> expanzi pro zkratku }{C-x a i g}
|
||
\key{p<EFBFBD>idat lok<6F>ln<6C> expanzi pro zkratku}{C-x a i l}
|
||
\key{expandovat zkratku}{C-x a e}
|
||
|
||
\key{dynamick<EFBFBD> expanze p<>edch<63>zej<65>c<EFBFBD>ho slova}{M-/}
|
||
|
||
\section{Regul<EFBFBD>rn<EFBFBD> v<>razy}
|
||
|
||
\key{libovoln<EFBFBD> znak krom<6F> nov<6F>ho <20><>dku}{. {\rm(te<74>ka)}}
|
||
\key{<EFBFBD><EFBFBD>dn<EFBFBD> nebo n<>kolik opakov<6F>n<EFBFBD>}{*}
|
||
\key{jedno nebo v<>ce opakov<6F>n<EFBFBD>}{+}
|
||
\key{<EFBFBD><EFBFBD>dn<EFBFBD> nebo jedno opakov<6F>n<EFBFBD>}{?}
|
||
\key{zru<EFBFBD>it zvl<76><6C>tn<74> v<>znam znaku {\it c\/} ve v<>razu}{\\{\it c}}
|
||
\key{alternativa (\uv{nebo})}{\\|}
|
||
\key{skupina}{\\( {\rm$\ldots$} \\)}
|
||
\key{stejn<EFBFBD> text jako {\it n\/}-t<> skupina}{\\{\it n}}
|
||
\key{hranice slova}{\\b}
|
||
\key{nikoliv hranice slova}{\\B}
|
||
|
||
\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
|
||
\threecol{{\bf element}}{{\bf za<7A><61>tek}}{{\bf konec}}
|
||
\threecol{<EFBFBD><EFBFBD>dek}{^}{\$}
|
||
\threecol{slovo}{\\<}{\\>}
|
||
\threecol{buffer}{\\`}{\\'}
|
||
|
||
\threecol{{\bf t<><74>da znak<61>}}{{\bf odpov<6F>d<EFBFBD>}}{{\bf neodpov<6F>d<EFBFBD>}}
|
||
\threecol{explicitn<EFBFBD> mno<6E>ina}{[ {\rm$\ldots$} ]}{[^ {\rm$\ldots$} ]}
|
||
\threecol{slovotvorn<EFBFBD> znak}{\\w}{\\W}
|
||
\threecol{znak se syntax<61> {\it c}}{\\s{\it c}}{\\S{\it c}}
|
||
}
|
||
|
||
\section{Mezin<EFBFBD>rodn<EFBFBD> znakov<6F> sady}
|
||
|
||
\metax{zadat hlavn<76> jazyk}{M-x set-language-environment}
|
||
\metax{zobrazit v<>echny vstupn<70> metody}{M-x list-input-methods}
|
||
\key{zapnout nebo vypnout vstupn<70> metodu}{C-\\}
|
||
\key{zadat k<>dov<6F>n<EFBFBD> pro n<>sleduj<75>c<EFBFBD> p<><70>kaz}{C-x RET c}
|
||
\metax{zobrazit v<>echna k<>dov<6F>n<EFBFBD>}{M-x list-coding-systems}
|
||
\metax{zm<EFBFBD>nit preferovan<61> k<>dov<6F>n<EFBFBD>}{M-x prefer-coding-system}
|
||
|
||
\section{Info}
|
||
|
||
\key{spustit Info}{C-h i}
|
||
\key{naj<EFBFBD>t zadanou funkci nebo prom<6F>nnou v~Info}{C-h C-i}
|
||
\beginindentedkeys
|
||
|
||
Pohyb uvnit<69> uzl<7A>:
|
||
|
||
\key{rolov<EFBFBD>n<EFBFBD> vp<76>ed}{SPC}
|
||
\key{rolov<EFBFBD>n<EFBFBD> zp<7A>t}{DEL}
|
||
\key{na za<7A><61>tek uzlu}{. {\rm (te<74>ka)}}
|
||
|
||
Pohyb mezi uzly:
|
||
|
||
\key{{\bf dal<61><6C>} uzel}{n}
|
||
\key{{\bf p<>edchoz<6F>} uzel}{p}
|
||
\key{{\bf nad<61>azen<65>} uzel}{u}
|
||
\key{vybrat z~menu podle n<>zvu}{m}
|
||
\key{vybrat {\it n\/}-tou polo<6C>ku menu (1--9)}{{\it n}}
|
||
\key{nejbli<EFBFBD><EFBFBD><EFBFBD> p<><70><EFBFBD>t<EFBFBD> k<><6B><EFBFBD>ov<6F> odkaz (n<>vrat \kbd{l})}{f}
|
||
\key{vr<EFBFBD>tit se do naposledy prohl<68><6C>en<65>ho uzlu}{l}
|
||
\key{vr<EFBFBD>tit se do adres<65><73>e uzl<7A>}{d}
|
||
\key{p<EFBFBD>ej<EFBFBD>t do kter<65>hokoliv uzlu podle jm<6A>na}{g}
|
||
|
||
Dal<EFBFBD><EFBFBD>:
|
||
|
||
\key{spustit {\bf tutori<72>l} k~Info}{h}
|
||
\key{{\bf ukon<6F>it} Info}{q}
|
||
\key{prohledat uzly na <20>et<65>zec}{M-s}
|
||
|
||
\endindentedkeys
|
||
|
||
\section{Registry}
|
||
|
||
\key{ulo<EFBFBD>it oblast do registru}{C-x r s}
|
||
\key{vlo<EFBFBD>it obsah registru do bufferu}{C-x r i}
|
||
|
||
\key{ulo<EFBFBD>it pozici kurzoru do registru}{C-x r SPC}
|
||
\key{sko<EFBFBD>it na pozici ulo<6C>enou v~registru}{C-x r j}
|
||
|
||
\section{Kl<EFBFBD>vesov<EFBFBD> makra}
|
||
|
||
\key{{\bf zah<61>jit} definov<6F>n<EFBFBD> kl<6B>vesov<6F>ho makra}{C-x (}
|
||
\key{{\bf zakon<6F>it} definov<6F>n<EFBFBD> kl<6B>vesov<6F>ho makra}{C-x )}
|
||
\key{{\bf vykonat} posledn<64> definovan<61> makro}{C-x e}
|
||
\key{p<EFBFBD>ipojit k~posledn<64>mu kl<6B>vesov<6F>mu makru}{C-u C-x (}
|
||
\metax{pojmenovat posledn<64> makro}{M-x name-last-kbd-macro}
|
||
\metax{vlo<EFBFBD>it do bufferu lispovou definici}{M-x insert-kbd-macro}
|
||
|
||
\section{P<EFBFBD><EFBFBD>kazy souvisej<65>c<EFBFBD> s~Emacs Lispem}
|
||
|
||
\key{vyhodnotit {\bf v<>raz} p<>ed kurzorem}{C-x C-e}
|
||
\key{vyhodnotit {\bf funkci} pod kurzorem}{C-M-x}
|
||
\metax{vyhodnotit {\bf oblast}}{M-x eval-region}
|
||
\key{na<EFBFBD><EFBFBD>st a vyhodnotit v<>raz v~minibufferu}{M-:}
|
||
\metax{na<EFBFBD><EFBFBD>st soubor ze syst<73>mov<6F>ho adres<65><73>e}{M-x load-library}
|
||
|
||
\section{Jednoduch<EFBFBD> p<>izp<7A>soben<65>}
|
||
|
||
\metax{nastavit prom<6F>nn<6E> a faces}{M-x customize}
|
||
|
||
% The intended audience here is the person who wants to make simple
|
||
% customizations and knows Lisp syntax.
|
||
|
||
Definice obecn<63> kl<6B>vesov<6F> zkratky v~Emacs Lispu (p<><70>klad):
|
||
|
||
\beginexample%
|
||
(global-set-key "\\C-cg" 'goto-line)
|
||
(global-set-key "\\M-\#" 'query-replace-regexp)
|
||
\endexample
|
||
|
||
\section{Z<EFBFBD>pis p<><70>kaz<61>}
|
||
|
||
\beginexample%
|
||
(defun \<command-name> (\<args>)
|
||
"\<documentation>" (interactive "\<template>")
|
||
\<body>)
|
||
\endexample
|
||
|
||
P<EFBFBD><EFBFBD>klad:
|
||
|
||
\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
|
||
|
||
Specifikace \kbd{interactive} <20><>k<EFBFBD>, jak interaktivn<76> na<6E><61>st ar\-gu\-men\-ty.
|
||
V<EFBFBD>ce se dozv<7A>te po proveden<65> \kbd{C-h f interactive}.
|
||
|
||
\copyrightnotice
|
||
|
||
\bye
|
||
|
||
% Local variables:
|
||
% compile-command: "csplain cs-refcard"
|
||
% End:
|