Rename generic-font-lock-defaults to generic-font-lock-keywords
[emacs.git] / etc / cs-dired-ref.tex
blobcecfcb3909da6635d4c2947a8563081fe805d55f
1 % Reference Card for Dired
2 % Copyright (C) 2000 Free Software Foundation, Inc.
4 % Czech hyphenation rules applied
5 \chyph
7 % This file is part of GNU Emacs.
9 % GNU Emacs is free software; you can redistribute it and/or modify
10 % it under the terms of the GNU General Public License as published by
11 % the Free Software Foundation; either version 2, or (at your option)
12 % any later version.
14 % GNU Emacs is distributed in the hope that it will be useful,
15 % but WITHOUT ANY WARRANTY; without even the implied warranty of
16 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 % GNU General Public License for more details.
19 % You should have received a copy of the GNU General Public License
20 % along with GNU Emacs; see the file COPYING. If not, write to
21 % the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 % Boston, MA 02111-1307, USA.
24 % This file can be printed with 1, 2, or 3 columns per page (see below).
25 % Specify how many you want here. Nothing else needs to be changed.
26 %**start of header
28 \newcount\columnsperpage
30 \columnsperpage=2
32 % This file is intended to be processed by plain TeX (TeX82).
33 % The reference card looks OK with 2 columns per page, portrait mode.
34 % I haven't tried it with 3 columns per page.
36 % This is a bit of a dirty hack on the GNU Emacs reference card
37 % to produce a Dired reference card instead.
39 % I (Evgeny Roubinchtein, eroubinc@u.washington.edu) put this together
40 % because I wanted a Dired reference card,
41 % but couldn't find anything on the 'net.
42 % Based mostly off Dired's describe-mode.
44 % Translated to Czech by Pavel Janík <Pavel@Janik.cz> in March 2001
46 % Process the file with `csplain' from the `CSTeX' distribution (included
47 % e.g. in the TeX Live CD).
49 \def\versionnumber{0.1}
50 \def\year{2000}
51 \def\version{May \year\ v\versionnumber}
53 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
54 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
55 Permissions on back. v\versionnumber}}
57 \def\copyrightnotice{
58 \vskip 1ex plus 2 fill\begingroup\small
59 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
60 \centerline{designed by Stephen Gildea, \version}
61 \centerline{for GNU Emacs version 21 on Unix systems}
62 \centerline{Updated for Dired in May 2000 by Evgeny Roubinchtein}
64 Permission is granted to make and distribute copies of
65 this card provided the copyright notice and this permission notice
66 are preserved on all copies.
68 For copies of the GNU Emacs manual, write to the Free Software
69 Foundation, Inc., 675 Massachusetts Ave, Cambridge MA 02139.
71 \endgroup}
73 % make \bye not \outer so that the \def\bye in the \else clause below
74 % can be scanned without complaint.
75 \def\bye{\par\vfill\supereject\end}
77 \newdimen\intercolumnskip %horizontal space between columns
78 \newbox\columna %boxes to hold columns already built
79 \newbox\columnb
81 \def\ncolumns{\the\columnsperpage}
83 \message{[\ncolumns\space
84 column\if 1\ncolumns\else s\fi\space per page]}
86 \def\scaledmag#1{ scaled \magstep #1}
88 % This multi-way format was designed by Stephen Gildea October 1986.
89 % Note that the 1-column format is fontfamily-independent.
90 \if 1\ncolumns %one-column format uses normal size
91 \hsize 4in
92 \vsize 10in
93 \voffset -.7in
94 \font\titlefont=\fontname\tenbf \scaledmag3
95 \font\headingfont=\fontname\tenbf \scaledmag2
96 \font\smallfont=\fontname\sevenrm
97 \font\smallsy=\fontname\sevensy
99 \footline{\hss\folio}
100 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
101 \else %2 or 3 columns uses prereduced size
102 \hsize 3.4in
103 \vsize 7.95in
104 \hoffset -.75in
105 \voffset -.745in
106 \font\titlefont=csbx10 \scaledmag2
107 \font\headingfont=csbx10 \scaledmag1
108 \font\smallfont=csr6
109 \font\smallsy=cmsy6
110 \font\eightrm=csr8
111 \font\eightbf=csbx8
112 \font\eightit=csti8
113 \font\eighttt=cstt8
114 \font\eightmi=csmi8
115 \font\eightsy=cmsy8
116 \textfont0=\eightrm
117 \textfont1=\eightmi
118 \textfont2=\eightsy
119 \def\rm{\eightrm}
120 \def\bf{\eightbf}
121 \def\it{\eightit}
122 \def\tt{\eighttt}
123 \normalbaselineskip=.8\normalbaselineskip
124 \normallineskip=.8\normallineskip
125 \normallineskiplimit=.8\normallineskiplimit
126 \normalbaselines\rm %make definitions take effect
128 \if 2\ncolumns
129 \let\maxcolumn=b
130 \footline{\hss\rm\folio\hss}
131 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
132 \else \if 3\ncolumns
133 \let\maxcolumn=c
134 \nopagenumbers
135 \else
136 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
137 \errmessage{Illegal number of columns per page}
138 \fi\fi
140 \intercolumnskip=.46in
141 \def\abc{a}
142 \output={% %see The TeXbook page 257
143 % This next line is useful when designing the layout.
144 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
145 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
146 \else\if a\abc
147 \global\setbox\columna\columnbox \global\def\abc{b}
148 %% in case we never use \columnb (two-column mode)
149 \global\setbox\columnb\hbox to -\intercolumnskip{}
150 \else
151 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
152 \def\multicolumnformat{\shipout\vbox{\makeheadline
153 \hbox{\box\columna\hskip\intercolumnskip
154 \box\columnb\hskip\intercolumnskip\columnbox}
155 \makefootline}\advancepageno}
156 \def\columnbox{\leftline{\pagebody}}
158 \def\bye{\par\vfill\supereject
159 \if a\abc \else\null\vfill\eject\fi
160 \if a\abc \else\null\vfill\eject\fi
161 \end}
164 % we won't be using math mode much, so redefine some of the characters
165 % we might want to talk about
166 \catcode`\^=12
167 \catcode`\_=12
169 \chardef\\=`\\
170 \chardef\{=`\{
171 \chardef\}=`\}
173 \hyphenation{mini-buf-fer}
174 \hyphenation{de-le-tion}
176 \parindent 0pt
177 \parskip 1ex plus .5ex minus .5ex
179 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
181 % newcolumn - force a new column. Use sparingly, probably only for
182 % the first column of a page, which should have a title anyway.
183 \outer\def\newcolumn{\vfill\eject}
185 % title - page title. Argument is title text.
186 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
188 % section - new major section. Argument is section name.
189 \outer\def\section#1{\par\filbreak
190 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
191 \vskip 2ex plus 1ex minus 1.5ex}
193 \newdimen\keyindent
195 % beginindentedkeys...endindentedkeys - key definitions will be
196 % indented, but running text, typically used as headings to group
197 % definitions, will not.
198 \def\beginindentedkeys{\keyindent=1em}
199 \def\endindentedkeys{\keyindent=0em}
200 \endindentedkeys
202 % paralign - begin paragraph containing an alignment.
203 % If an \halign is entered while in vertical mode, a parskip is never
204 % inserted. Using \paralign instead of \halign solves this problem.
205 \def\paralign{\vskip\parskip\halign}
207 % \<...> - surrounds a variable name in a code example
208 \def\<#1>{{\it #1\/}}
210 % kbd - argument is characters typed literally. Like the Texinfo command.
211 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
213 % beginexample...endexample - surrounds literal text, such a code example.
214 % typeset in a typewriter font with line breaks preserved
215 \def\beginexample{\par\leavevmode\begingroup
216 \obeylines\obeyspaces\parskip0pt\tt}
217 {\obeyspaces\global\let =\ }
218 \def\endexample{\endgroup}
220 % key - definition of a key.
221 % \key{description of key}{key-name}
222 % prints the description left-justified, and the key-name in a \kbd
223 % form near the right margin.
224 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
225 {\hsize=.75\hsize\rightskip=1em
226 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
228 \newbox\metaxbox
229 \setbox\metaxbox\hbox{\kbd{M-x }}
230 \newdimen\metaxwidth
231 \metaxwidth=\wd\metaxbox
233 % metax - definition of a M-x command.
234 % \metax{description of command}{M-x command-name}
235 % Tries to justify the beginning of the command name at the same place
236 % as \key starts the key name. (The "M-x " sticks out to the left.)
237 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
238 {\hskip\keyindent\relax#1\hfil}%
239 \hskip -\metaxwidth minus 1fil
240 \kbd{#2}\hfil}}
242 % threecol - like "key" but with two key names.
243 % for example, one for doing the action backward, and one for forward.
244 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
245 &\kbd{#3}\hfil\quad\cr}
247 % I cannot figure out how to make all dired-x
248 % commands fit on a page in two-column format
249 \def\dx{{\bf (DX)}}
251 %**end of header
254 \title{Referenèní karta pro Dired}
256 \centerline{(urèeno pro Dired v GNU Emacsu 21.x)}
257 \centerline{Pøíkazy oznaèené \dx{} vy¾adují dired-x}
259 % trim this down to fit everything on one page
260 % \section{General}
261 % In dired, you can edit a list of the files in a directory (and optionally
262 % its subdirectories in the `ls -lR' format).
264 % Editing a directory means that you can visit, rename, copy, compress,
265 % load, byte-compile files. You can change files' attributes, run shell
266 % commands on files, or insert subdirectories into the edit buffer. You can
267 % "flag" files for deletion or "mark" files for later commands, either one
268 % file at a time or by all files matching certain criteria (e.g., files that
269 % match a certain regexp).
271 % You move throughout the buffer using the usual cursor motion commands.
272 % Letters no longer insert themselves, but execute commands instead. The
273 % digits (0-9) are prefix arguments.
275 % Most commands operate either on all marked files or on the current file if
276 % no files are marked. Use a numeric prefix argument to operate on the next
277 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
278 % operate on the current file only. Prefix arguments override marks. Commands
279 % which run a sub-process on a group of files will display a list of files
280 % for which the sub-process failed. Typing y will try to tell
281 % you what went wrong.
283 % When editing several directories in one buffer, each directory acts as a
284 % page, so C-x [ and C-x ] can be used to move between directories.
286 \section{Spu¹tìní a ukonèení Dired}
288 \key{spu¹tìní dired}{C-x d}
289 \key{spu¹tìní dired v adresáøi s aktuálním souborem}{C-x C-j \dx}
290 \key{ukonèení dired}{q}
292 \section{Pøíkazy pro pøesuny}
294 \key{zpìt na pøedchozí øádku}{p}
295 \key{vpøed na následující øádku}{n}
296 \key{nahoru na pøedchozí adresáø}{<}
297 \key{dolù na následující adresáø}{>}
298 \key{na dal¹í oznaèený soubor}{M-\}}
299 \key{na pøedchozí oznaèený soubor}{M-\{}
300 \key{zpìt na pøedchozí podadresáø}{M-C-p}
301 \key{vpøed na dal¹í podadresáø}{M-C-n}
302 \key{na nadøazený adresáø}{^}
303 \key{jdi na první podadresáø}{M-C-d}
305 \section{Pøíkazy pomocí my¹i}
306 \metax{otevøi soubor}{Mouse_Button_2}
307 \metax{zobraz menu}{Control-Mouse_Button_3}
309 \section{Okam¾ité akce nad soubory}
311 \key{otevøi aktuální soubor}{f}
312 \key{otevøi aktuální soubor pouze pro ètení}{v}
313 \key{otevøi aktuální soubor v jiném oknì}{o}
314 \key{otevøi aktuální soubor v jiném rámci}{w}
315 \key{zobraz aktuální soubor}{C-u o}
316 \key{vytvoø nový podadresáø}{+}
317 \key{porovnej soubor pod kurzorem s oznaèeným}{=}
319 \section{Znaèení a odznaèení souborù}
321 \key{oznaè soubor nebo podadresáø pro dal¹í pøíkazy}{m}
322 \key{odznaè soubor nebo soubory podadresáøe}{u}
323 \key{zru¹ oznaèení v¹ech souborù v bufferu}{M-delete}
324 \key{oznaè soubory se zadanou pøíponou}{* .}
325 \key{oznaè v¹echny adresáøe}{* /}
326 \key{oznaè v¹echny symbolické odkazy}{* @}
327 \key{oznaè v¹echny spustitelné soubory}{* *}
328 \key{invertuj oznaèení}{* t}
329 \key{oznaè v¹echny soubory v aktuálním podadresáøi}{* s}
330 \key{oznaè soubory vyhovující regulárnímu výrazu}{* \%}
331 \key{zmìò znaèku na jiné písmeno}{* c}
332 \key{oznaè soubory, pro které elispový výraz vrací t}{* ( \dx}
334 \section{Nápovìda}
336 \key{zobraz nápovìdu}{h}
337 \key{pøehled pøíkazù dired}{?}
339 \section{Pøíkazy nad oznaèenými soubory}
341 \key{kopíruj soubor(y)}{C}
342 \key{pøejmenuj soubor nebo pøesuò soubory}{R}
343 \key{zmìò vlastníka souboru(ù)}{O}
344 \key{zmìò skupinu souboru(ù)}{G}
345 \key{zmìò pøístupová práva souboru(ù)}{M}
346 \key{vytiskni soubor(y)}{P}
347 \key{zmìò název souboru(ù) na malá písmena}{\% l}
348 \key{zmìò název souboru(ù) na velká písmena}{\% u}
349 \key{sma¾ oznaèené soubory}{X}
350 \key{proveï uuencode nebo uudecode souboru(ù)}{U}
351 \key{zkomprimuj nebo dekomprimuj soubor(y)}{Z}
352 \key{spus» info na soubor}{I \dx}
353 \key{vytvoø symbolický(é) odkaz(y)}{S}
354 \key{vytvoø relativní symbolické odkazy}{Y}
355 \key{vytvoø pevný odkaz}{H}
356 \key{prohledej soubory na regulární výraz}{A}
357 \key{nahraï regulární výrazy}{Q}
358 \key{pøelo¾ soubory (byte-compile)}{B}
359 \key{naèti soubory (load-file)}{L}
360 \key{spus» pøíkaz na soubor(y)}{!}
362 \section{Oznaèení souborù pro smazání}
363 \leftline{\bf Odznaèující pøíkazy ma¾ou znaèku pro smazání}
364 \key{oznaè soubor pro smazání}{d}
365 \key{odstraò znaèku pro smazání}{delete}
366 \key{oznaè v¹echny zálohy (soubory konèící na \~{})}{\~{}}
367 \key{oznaè v¹echny zálohy (auto-save)}{\#}
368 \key{oznaè rùzné doèasné soubory}{\&}
369 \key{oznaè èíslované zálohy (konèící na .\~{}1\~{} apod.)}{.}
370 \key{proveï výmaz souborù oznaèených ke smazání}{x}
371 \key{oznaè soubory vyhovující regulárnímu výrazu}{\% d}
373 \section{Modifikace Dired bufferu}
375 \key{vlo¾ do tohoto bufferu podadresáø}{i}
376 \key{odstraò oznaèené soubory z bufferu}{k}
377 \key{odstraò z bufferu výpis podadresáøe}{C-u k}
378 \key{znovu naèti adresáøe (znaèky se zachovají)}{g}
379 \key{pøepni tøídìní adresáøe podle jména/data}{s}
380 \key{uprav volby pøíkazu ls}{C-u s}
381 \key{obnov znaèky, skryté øádky apod.}{C-_}
382 \key{skryj v¹echny podadresáøe}{M-\$}
383 \key{skryj nebo odkryj v¹echny podadresáøe}{\$}
385 \section{Pøíkazy s regulárními výrazy}
387 \key{oznaè soubory vyhovující regulárnímu výrazu}{\% m}
388 \key{kopíruj oznaèené soubory obsahující regexp}{\% C}
389 \key{pøejmenuj oznaèené soubory vyhovující regexp}{\% R}
390 \key{pevný odkaz}{\% H}
391 \key{symbolický odkaz}{\% S}
392 \key{symbolický odkaz s relativní cestou}{\% Y}
393 \key{oznaè pro smazání}{\% d}
395 \section{Dired a Find}
396 \metax{otevøi v dired soubory vyhovující vzorku}{M-x find-name-dired}
397 \metax{otevøi v dired soubory obsahující vzorek}{M-x find-grep-dired}
398 \metax{otevøi v dired soubory podle výstupu \kbd{find}}{M-x find-dired}
400 %\copyrightnotice
402 \bye
404 % arch-tag: dd78e947-5b89-4e5b-8bab-b6003719dce5