-% Reference Card for GNU Emacs version 22 on Unix systems
-%**start of header
-\newcount\columnsperpage
-\newcount\letterpaper
-
-% This file can be printed with 1, 2, or 3 columns per page (see below).
-% Specify how many you want here.
-
-\columnsperpage=3
-
-% Set letterpaper to 0 for A4 paper, 1 for letter (US) paper. Useful
-% only when columnsperpage is 2 or 3.
-
-\letterpaper=1
+% Reference Card for GNU Emacs
-% PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
-% a landscape layout.
+% Copyright (C) 1987, 1993, 1996-1997, 2001-2012
+% Free Software Foundation, Inc.
-\input pdflayout.sty
-\pdflayout=(1l)
-
-% Nothing else needs to be changed below this line.
-% Copyright (C) 1987, 1993, 1996, 1997, 2001, 2002, 2003, 2004,
-% 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+% Author: Stephen Gildea <gildea@stop.mail-abuse.org>
% This file is part of GNU Emacs.
-% GNU Emacs is free software; you can redistribute it and/or modify
+% 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 3, or (at your option)
-% any later version.
+% the Free Software Foundation, either version 3 of the License, 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
% 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., 51 Franklin Street, Fifth Floor,
-% Boston, MA 02110-1301, USA.
+% along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
+
% This file is intended to be processed by plain TeX (TeX82).
%
% 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.
+% Which mode to use is controlled by setting \columnsperpage.
%
% To compile and print this document:
% tex refcard.tex
% dvips -t landscape refcard.dvi
%
-% Author:
-% Stephen Gildea
-% Internet: gildea@stop.mail-abuse.org
-%
% 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.
+%**start of header
+\newcount\columnsperpage
+\newcount\letterpaper
+
+% This file can be printed with 1, 2, or 3 columns per page.
+% Specify how many you want here.
+\columnsperpage=3
+
+% Set letterpaper to 0 for A4 paper, 1 for letter (US) paper. Useful
+% only when columnsperpage is 2 or 3.
+\letterpaper=1
+
+% PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
+% a landscape layout.
+\input pdflayout.sty
+\pdflayout=(1l)
+
+% Nothing else needs to be changed below this line.
-\def\versionnumber{2.3} % version of this manual
-\def\versionyear{2007} % year manual was updated
-\def\versionemacs{22} % version of emacs this manual is for
-\def\year{2008} % copyright year
+\input emacsver.tex
\def\shortcopyrightnotice{\vskip 1ex plus 2 fill
\centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
- Permissions on back. v\versionnumber}}
+ Permissions on back.}}
\def\copyrightnotice{
\vskip 1ex plus 2 fill\begingroup\small
\centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
-\centerline{v\versionnumber{} for GNU Emacs version \versionemacs, \versionyear}
-\centerline{designed by Stephen Gildea}
+\centerline{For GNU Emacs version \versionemacs}
+\centerline{Designed by Stephen Gildea}
Permission is granted to make and distribute modified or unmodified
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+For copies of the GNU Emacs manual, see:
+{\tt http://www.gnu.org/software/emacs/\#Manuals}
\endgroup}
% make \bye not \outer so that the \def\bye in the \else clause below
\shortcopyrightnotice
+\newcolumn
\section{Motion}
\paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
\key{scroll to previous screen}{M-v}
\key{scroll left}{C-x <}
\key{scroll right}{C-x >}
-\key{scroll current line to center of screen}{C-u C-l}
+\key{scroll current line to center, top, bottom}{C-l}
+
+\key{goto line}{M-g g}
+\key{back to indentation}{M-m}
\section{Killing and Deleting}
Valid responses in query-replace mode are
-\key{{\bf replace} this one, go on to next}{SPC}
+\key{{\bf replace} this one, go on to next}{SPC {\rm or} y}
\key{replace this one, don't move}{,}
-\key{{\bf skip} to next without replacing}{DEL}
+\key{{\bf skip} to next without replacing}{DEL {\rm or} n}
\key{replace all remaining matches}{!}
\key{{\bf back up} to the previous match}{^}
\key{{\bf exit} query-replace}{RET}
\key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r}
+\newcolumn
\section{Multiple Windows}
When two commands are shown, the second is a similar command for a
\key{indent {\bf region} (mode-dependent)}{C-M-\\}
\key{indent {\bf sexp} (mode-dependent)}{C-M-q}
\key{indent region rigidly {\it arg\/} columns}{C-x TAB}
+\key{indent for comment}{M-;}
\key{insert newline after point}{C-o}
\key{move rest of line vertically down}{C-M-o}
\key{expand previous word dynamically}{M-/}
+\section{Miscellaneous}
+
+\key{numeric argument}{C-u {\it num}}
+\key{negative argument}{M--}
+\key{quoted insert}{C-q {\it char}}
+
+\newcolumn
\section{Regular Expressions}
\key{any single character except a newline}{. {\rm(dot)}}
\endindentedkeys
+\newcolumn
\section{Registers}
\key{save region in register}{C-x r s}
% compile-command: "pdftex refcard"
% End:
-% arch-tag: d67bdf5d-b77c-44eb-a22e-f4f7d25174d2