annotate etc/refcards/dired-ref.tex @ 108906:387729300909

Synch with Gnus trunk. 2010-06-07 Teodor Zlatanov <tzz@lifelogs.com> * gnus.texi (Interactive): Explain effect of gnus-expert-user better. 2010-06-07 Teemu Likonen <tlikonen@iki.fi> (tiny change) * gnus-agent.el (gnus-agent-expire-unagentized-dirs): Don't ask about deleting unused directories when gnus-expert-user is t.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Mon, 07 Jun 2010 23:01:34 +0000
parents 8b08de8dc0aa
children 376148b31b5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 % Reference Card for Dired
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
2
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
3 % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
106815
1d1d5d9bd884 Add 2010 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 104005
diff changeset
4 % 2009, 2010 Free Software Foundation, Inc.
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
5
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
6 % Author: Evgeny Roubinchtein <eroubinc@u.washington.edu>
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8 % This file is part of GNU Emacs.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
10 % GNU Emacs is free software: you can redistribute it and/or modify
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
11 % it under the terms of the GNU General Public License as published by
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
12 % the Free Software Foundation, either version 3 of the License, or
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
13 % (at your option) any later version.
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15 % GNU Emacs is distributed in the hope that it will be useful,
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
16 % but WITHOUT ANY WARRANTY; without even the implied warranty of
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
17 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
18 % GNU General Public License for more details.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
19
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
20 % You should have received a copy of the GNU General Public License
95010
9f4d6f3769da Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
21 % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
23
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
24 % This file is intended to be processed by plain TeX (TeX82).
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
25
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
26 % This is a bit of a dirty hack on the GNU Emacs reference card
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
27 % to produce a Dired reference card instead.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
28
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
29 % I put this together because I wanted a Dired reference card, but
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
30 % couldn't find anything on the 'net. Based mostly off Dired's
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
31 % describe-mode.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
32
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 %**start of header
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 \newcount\columnsperpage
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
36 % This file can be printed with 1, 2, or 3 columns per page.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
37 % Specify how many you want here.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
38 % The reference card looks OK with 2 columns per page, portrait mode.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
39 % I haven't tried it with 3 columns per page.
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 \columnsperpage=2
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41
82867
ec3273f2caea Specify PDF layout.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82653
diff changeset
42 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
ec3273f2caea Specify PDF layout.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82653
diff changeset
43 % a landscape layout.
ec3273f2caea Specify PDF layout.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82653
diff changeset
44 \input pdflayout.sty
103902
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
45 \pdflayout=(1)
82867
ec3273f2caea Specify PDF layout.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82653
diff changeset
46
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
47 \def\versionemacs{23} % version of Emacs this is for
107297
8b08de8dc0aa Update short copyright year in refcard tex files.
Glenn Morris <rgm@gnu.org>
parents: 106815
diff changeset
48 \def\year{2010} % latest copyright year
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
50 % Nothing else needs to be changed.
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
54 Permissions on back.}}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56 \def\copyrightnotice{
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 \vskip 1ex plus 2 fill\begingroup\small
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
59 \centerline{For GNU Emacs version \versionemacs}
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
60 \centerline{Originally written May 2000 by Evgeny Roubinchtein,}
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
61 \centerline{using refcard layout designed by Stephen Gildea.}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 Permission is granted to make and distribute copies of
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 this card provided the copyright notice and this permission notice
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 are preserved on all copies.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
67 For copies of the GNU Emacs manual, see:
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
69 {\tt http://www.gnu.org/software/emacs/\#Manuals}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70 \endgroup}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 % make \bye not \outer so that the \def\bye in the \else clause below
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73 % can be scanned without complaint.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74 \def\bye{\par\vfill\supereject\end}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76 \newdimen\intercolumnskip %horizontal space between columns
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 \newbox\columna %boxes to hold columns already built
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78 \newbox\columnb
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80 \def\ncolumns{\the\columnsperpage}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
81
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82 \message{[\ncolumns\space
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83 column\if 1\ncolumns\else s\fi\space per page]}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85 \def\scaledmag#1{ scaled \magstep #1}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 % This multi-way format was designed by Stephen Gildea October 1986.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
88 % Note that the 1-column format is fontfamily-independent.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89 \if 1\ncolumns %one-column format uses normal size
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
90 \hsize 4in
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
91 \vsize 10in
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92 \voffset -.7in
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
93 \font\titlefont=\fontname\tenbf \scaledmag3
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
94 \font\headingfont=\fontname\tenbf \scaledmag2
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95 \font\smallfont=\fontname\sevenrm
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96 \font\smallsy=\fontname\sevensy
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
97
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98 \footline{\hss\folio}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
100 \else %2 or 3 columns uses prereduced size
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
101 \hsize 3.4in
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
102 \vsize 9.2in
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103 \hoffset -.75in
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104 \voffset -.745in
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
105 \font\titlefont=cmbx10 \scaledmag2
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106 \font\headingfont=cmbx10 \scaledmag1
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107 \font\smallfont=cmr6
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
108 \font\smallsy=cmsy6
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
109 \font\eightrm=cmr8
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110 \font\eightbf=cmbx8
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111 \font\eightit=cmti8
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 \font\eighttt=cmtt8
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113 \font\eightmi=cmmi8
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 \font\eightsy=cmsy8
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115 \textfont0=\eightrm
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116 \textfont1=\eightmi
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
117 \textfont2=\eightsy
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
118 \def\rm{\eightrm}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
119 \def\bf{\eightbf}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120 \def\it{\eightit}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 \def\tt{\eighttt}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 \normalbaselineskip=.8\normalbaselineskip
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 \normallineskip=.8\normallineskip
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124 \normallineskiplimit=.8\normallineskiplimit
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125 \normalbaselines\rm %make definitions take effect
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127 \if 2\ncolumns
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 \let\maxcolumn=b
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 \footline{\hss\rm\folio\hss}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 \else \if 3\ncolumns
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 \let\maxcolumn=c
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 \nopagenumbers
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 \else
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 \errmessage{Illegal number of columns per page}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 \fi\fi
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 \intercolumnskip=.46in
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 \def\abc{a}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141 \output={% %see The TeXbook page 257
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 % This next line is useful when designing the layout.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 \else\if a\abc
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146 \global\setbox\columna\columnbox \global\def\abc{b}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 %% in case we never use \columnb (two-column mode)
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 \global\setbox\columnb\hbox to -\intercolumnskip{}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 \else
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151 \def\multicolumnformat{\shipout\vbox{\makeheadline
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 \hbox{\box\columna\hskip\intercolumnskip
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 \box\columnb\hskip\intercolumnskip\columnbox}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 \makefootline}\advancepageno}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155 \def\columnbox{\leftline{\pagebody}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 \def\bye{\par\vfill\supereject
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 \if a\abc \else\null\vfill\eject\fi
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 \if a\abc \else\null\vfill\eject\fi
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160 \end}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161 \fi
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163 % we won't be using math mode much, so redefine some of the characters
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 % we might want to talk about
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 \catcode`\^=12
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 \catcode`\_=12
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168 \chardef\\=`\\
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 \chardef\{=`\{
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170 \chardef\}=`\}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 \hyphenation{mini-buf-fer}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173 \hyphenation{de-le-tion}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175 \parindent 0pt
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 \parskip 1ex plus .5ex minus .5ex
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180 % newcolumn - force a new column. Use sparingly, probably only for
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181 % the first column of a page, which should have a title anyway.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182 \outer\def\newcolumn{\vfill\eject}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184 % title - page title. Argument is title text.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187 % section - new major section. Argument is section name.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188 \outer\def\section#1{\par\filbreak
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190 \vskip 2ex plus 1ex minus 1.5ex}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192 \newdimen\keyindent
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194 % beginindentedkeys...endindentedkeys - key definitions will be
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195 % indented, but running text, typically used as headings to group
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196 % definitions, will not.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197 \def\beginindentedkeys{\keyindent=1em}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198 \def\endindentedkeys{\keyindent=0em}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199 \endindentedkeys
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201 % paralign - begin paragraph containing an alignment.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202 % If an \halign is entered while in vertical mode, a parskip is never
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203 % inserted. Using \paralign instead of \halign solves this problem.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 \def\paralign{\vskip\parskip\halign}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
206 % \<...> - surrounds a variable name in a code example
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207 \def\<#1>{{\it #1\/}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209 % kbd - argument is characters typed literally. Like the Texinfo command.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212 % beginexample...endexample - surrounds literal text, such a code example.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213 % typeset in a typewriter font with line breaks preserved
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
214 \def\beginexample{\par\leavevmode\begingroup
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
215 \obeylines\obeyspaces\parskip0pt\tt}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216 {\obeyspaces\global\let =\ }
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 \def\endexample{\endgroup}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219 % key - definition of a key.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220 % \key{description of key}{key-name}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 % prints the description left-justified, and the key-name in a \kbd
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222 % form near the right margin.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224 {\hsize=.75\hsize\rightskip=1em
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 \newbox\metaxbox
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228 \setbox\metaxbox\hbox{\kbd{M-x }}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229 \newdimen\metaxwidth
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230 \metaxwidth=\wd\metaxbox
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232 % metax - definition of a M-x command.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
233 % \metax{description of command}{M-x command-name}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234 % Tries to justify the beginning of the command name at the same place
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235 % as \key starts the key name. (The "M-x " sticks out to the left.)
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237 {\hskip\keyindent\relax#1\hfil}%
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238 \hskip -\metaxwidth minus 1fil
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239 \kbd{#2}\hfil}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
240
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
241 % threecol - like "key" but with two key names.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242 % for example, one for doing the action backward, and one for forward.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 &\kbd{#3}\hfil\quad\cr}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246 % I cannot figure out how to make all dired-x
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
247 % commands fit on a page in two-column format
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
248 \def\dx{{\bf (DX)}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
250 \nopagenumbers
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
251
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252 %**end of header
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
254
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255 \title{Dired Reference Card}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103902
diff changeset
257 \centerline{(based on Dired in GNU Emacs \versionemacs)}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 \centerline{Commands marked with \dx{} require dired-x}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
260 % trim this down to fit everything on one page
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
261 % \section{General}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262 % In dired, you can edit a list of the files in a directory (and optionally
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263 % its subdirectories in the `ls -lR' format).
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265 % Editing a directory means that you can visit, rename, copy, compress,
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266 % load, byte-compile files. You can change files' attributes, run shell
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
267 % commands on files, or insert subdirectories into the edit buffer. You can
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
268 % "flag" files for deletion or "mark" files for later commands, either one
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
269 % file at a time or by all files matching certain criteria (e.g., files that
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270 % match a certain regexp).
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
272 % You move throughout the buffer using the usual cursor motion commands.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
273 % Letters no longer insert themselves, but execute commands instead. The
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
274 % digits (0-9) are prefix arguments.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
275
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
276 % Most commands operate either on all marked files or on the current file if
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277 % no files are marked. Use a numeric prefix argument to operate on the next
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
278 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
279 % operate on the current file only. Prefix arguments override marks. Commands
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
280 % which run a sub-process on a group of files will display a list of files
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
281 % for which the sub-process failed. Typing y will try to tell
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
282 % you what went wrong.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
283
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
284 % When editing several directories in one buffer, each directory acts as a
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
285 % page, so C-x [ and C-x ] can be used to move between directories.
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287 \section{Entering and Exiting Dired}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
289 \key{run dired}{C-x d}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
290 \key{dired the directory of the file you are editing}{C-x C-j \dx}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
291 \key{quit dired}{q}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
292
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
293 \section{Motion Commands}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
294
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
295 \key{move up to previous line}{p}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
296 \key{move down to next line}{n}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297 \key{move up to previous directory line}{<}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
298 \key{move down to next directory line}{>}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
299 \key{move to next marked file}{M-\}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
300 \key{move to previous marked file}{M-\{}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 \key{move up to previous subdirectory}{M-C-p}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
302 \key{move down to next subdirectory}{M-C-n}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
303 \key{move to parent directory}{^}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
304 \key{move to first child subdirectory}{M-C-d}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
305
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
306 \section{Mouse Commands}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
307 \metax{visit file}{Mouse_Button_2}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
308 \metax{popup menu}{Control-Mouse_Button_3}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
310 \section{Immediate Actions on Files}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
311
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
312 \key{visit current file}{f}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313 \key{view current file}{v}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
314 \key{visit current file in other window}{o}
103902
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
315 %% Huh?
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
316 %% \key{visit current file in other frame}{w}
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
317 %% Huh?
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
318 %%\key{display current file}{C-u o}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
319 \key{create a new subdirectory}{+}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
320 \key{compare file at point with the one at mark}{=}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322 \section{Marking and Unmarking Files}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
324 \key{mark a file or subdirectory for later commands}{m}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
325 \key{unmark a file or all files of a subdirectory}{u}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
326 \key{unmark all marked files in a buffer}{M-delete}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
327 \key{mark files with a given extension}{* .}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
328 \key{mark all directories}{* /}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
329 \key{mark all symlinks}{* @}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330 \key{mark all executables}{* *}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331 \key{invert marking}{* t}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332 \key{mark all files in the current subdir}{* s}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
333 \key{mark file names matching a regular expression}{* \%}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
334 \key{change the marks to a different character}{* c}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
335 \key{mark files for which Elisp expression returns t}{* ( \dx}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
337 \section{Modifying the Dired Buffer}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
338
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339 \key{insert a subdirectory into this buffer}{i}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
340 \key{remove marked files from the listing}{k}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
341 \key{remove a subdir listing}{C-u k}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
342 \key{re-read all directories (retains all marks)}{g}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
343 \key{toggle sorting of current subdir by name/date}{s}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
344 \key{edit ls switches}{C-u s}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345 \key{recover marks, hidden lines, and such}{C-_}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
346 \key{hide all subdirectories}{M-\$}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
347 \key{hide or unhide subdirectory}{\$}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
348
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
349 \section{Commands on Files Marked or Specified by the Prefix}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
350
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
351 \key{copy file(s)}{C}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352 \key{rename a file or move files to another directory}{R}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 \key{change ownership of file(s)}{O}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354 \key{change the group of the file(s)}{G}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
355 \key{change mode of file(s)}{M}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
356 \key{print file(s)}{P}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357 \key{convert filename(s) to lower case}{\% l}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358 \key{convert filename(s) to upper case}{\% u}
103902
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
359 \key{delete marked (as opposed to flagged) files}{D}
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
360 %% Huh?
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
361 %%\key{uuencode or uudecode file(s)}{U}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
362 \key{compress or uncompress file(s)}{Z}
103902
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
363 %% Only uses the current file.
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
364 \key{run info on file}{I \dx}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 \key{make symbolic link(s)}{S}
103902
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
366 \key{make relative symbolic link(s)}{Y}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367 \key{make hard link(s)}{H}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
368 \key{search files for a regular expression}{A}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369 \key{query replace regular expression}{Q}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370 \key{byte-compile files}{B}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371 \key{load files}{L}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
372 \key{shell command on file(s)}{!}
103902
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
373 \key{asynchronous shell command on file(s)}{\&}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
374
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 \section{Flagging Files for Deletion}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
376 \leftline{\bf Unmark commands remove delete flags}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
377 \key{flag file for deletion}{d}
103902
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
378 %% Huh?
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
379 %%\key{backup and remove deletion flag}{delete}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
380 \key{flag all backup files (file names ending in \~{})}{\~{}}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
381 \key{flag all auto-save files}{\#}
103902
b6513fb5992f Change from A4 to letter paper.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
382 \key{flag various intermediate files}{\% \&}
82653
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
383 \key{flag numeric backups (ending in .\~{}1\~{}, .\~{}2\~{}, etc.)}{.}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
384 \key{execute the deletions requested (flagged files)}{x}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
385 \key{flag files matching a regular expression}{\% d}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
386
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387 \section{Regular Expression Commands}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389 \key{mark filenames matching a regular expression}{\% m}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
390 \key{copy marked files by regexp}{\% C}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391 \key{rename marked files by regexp}{\% R}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 \key{hardlink}{\% H}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 \key{symlink}{\% S}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394 \key{symlink, with relative paths}{\% Y}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395 \key{mark for deletion}{\% d}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397 \section{Dired and Find}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
398 \metax{dired file(s) whose name matches a pattern}{M-x find-name-dired}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
399 \metax{dired file(s) that contain pattern}{M-x find-grep-dired}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400 \metax{dired file(s) based on \kbd{find} output}{M-x find-dired}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 \section{Getting Help}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 \key{dired help}{h}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405 \key{dired summary (short help) and error log}{?}
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407 \copyrightnotice
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409 \bye
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
410
2a49ba8f008a Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
411 % arch-tag: 483e7bb4-4576-4733-9fca-0eae1c861484