annotate etc/survival.tex @ 78359:2dd5d799a16d

* vc-git.el: (vc-directory-exclusion-list, vc-handled-backends): Remove. (vc-git-revision-completion-table): Enable. * vc-hooks.el (vc-handled-backends): Add GIT and HG. * vc.el (vc-directory-exclusion-list): Add .git and .hg. * vc-hg.el (vc-hg-revision-completion-table): Re-enable. * diff-mode.el (diff-mode-menu): New entries. * diff-mode.el (diff-beginning-of-file-and-junk): New function. (diff-file-kill): Use it. (diff-beginning-of-hunk): Add arg `try-harder' using it. (diff-restrict-view, diff-find-source-location, diff-refine-hunk): Use it so they find the hunk even when we're in the file header. * vc.el: Add new VC operation `revision-completion-table'. (vc-default-revision-completion-table): New function. (vc-version-diff, vc-version-other-window): Use it to provide completion of revision names if the backend provides it. * vc-arch.el (vc-arch--version-completion-table) (vc-arch-revision-completion-table): New functions to provide completion of revision names. * vc-cvs.el: Require CL. (vc-cvs-revision-table, vc-cvs-revision-completion-table): New functions to provide completion of revision names. * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400. * vc2-xtra.texi (Customizing VC): Add GIT and HG.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 30 Jul 2007 00:19:06 +0000
parents 713172dcf518
children 1dd7437446ea f55f9811f5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 %&tex
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2 %
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 % Title: GNU Emacs Survival Card
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4 % Author: Wlodek Bzyl <matwb@univ.gda.pl>
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5 %
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 % $Revision: 1.8 $
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7 % $Date: 2000/05/05 22:00:48 $
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8 %
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9 %**start of header
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 % User interface is `plain.tex' and macros described below
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 %
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 % \title{CARD TITLE}{for version 21}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14 % \section{NAME}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 % optional paragraphs separated with \askip amount of vertical space
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 % \key{KEY-NAME} description of key or
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17 % \mkey{M-x LONG-LISP-NAME} description of Elisp function
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
18 %
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19 % \kbd{ARG} -- argument is typed literally
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 \def\plainfmtname{plain}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 \ifx\fmtname\plainfmtname
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 \else
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24 \errmessage{This file requires `plain' format to be typeset correctly}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25 \endinput
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
26 \fi
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27
75321
b0994ad32966 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68640
diff changeset
28 % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005,
b0994ad32966 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68640
diff changeset
29 % 2006, 2007 Free Software Foundation, Inc.
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31 % This file is part of GNU Emacs.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 % GNU Emacs is free software; you can redistribute it and/or modify
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34 % it under the terms of the GNU General Public License as published by
78271
713172dcf518 Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75326
diff changeset
35 % the Free Software Foundation; either version 3, or (at your option)
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 % any later version.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38 % GNU Emacs is distributed in the hope that it will be useful,
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39 % but WITHOUT ANY WARRANTY; without even the implied warranty of
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 % GNU General Public License for more details.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43 % You should have received a copy of the GNU General Public License
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 % along with GNU Emacs; see the file COPYING. If not, write to
64083
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
45 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
46 % Boston, MA 02110-1301, USA.
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48 \def\versionnumber{1.0}
75326
f9a6f8c0edb4 (\versionemacs): New def.
Glenn Morris <rgm@gnu.org>
parents: 75321
diff changeset
49 \def\versionemacs{21}
f9a6f8c0edb4 (\versionemacs): New def.
Glenn Morris <rgm@gnu.org>
parents: 75321
diff changeset
50 \def\year{2007} % latest copyright year
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52 \def\copyrightnotice{\penalty-1\vfill
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 \vbox{\smallfont\baselineskip=0.8\baselineskip\raggedcenter
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 Copyright \year\ Free Software Foundation, Inc.\break
75326
f9a6f8c0edb4 (\versionemacs): New def.
Glenn Morris <rgm@gnu.org>
parents: 75321
diff changeset
55 Version \versionnumber{} for GNU Emacs \versionemacs, April 2000\break
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 Project W{\l}odek Bzyl (matwb@univ.gda.pl)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 Permission is granted to make and distribute copies of
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59 this card provided the copyright notice and this permission notice
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60 are preserved on all copies.\par}}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 \hsize 3.2in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 \vsize 7.95in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 \font\titlefont=cmss10 scaled 1200
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 \font\headingfont=cmss10
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 \font\smallfont=cmr6
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 \font\smallsy=cmsy6
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 \font\eightrm=cmr8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 \font\eightbf=cmbx8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 \font\eightit=cmti8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 \font\eighttt=cmtt8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 \font\eightmi=cmmi8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73 \font\eightsy=cmsy8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 \font\eightss=cmss8
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75 \textfont0=\eightrm
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 \textfont1=\eightmi
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77 \textfont2=\eightsy
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78 \def\rm{\eightrm} \rm
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 \def\bf{\eightbf}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 \def\it{\eightit}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81 \def\tt{\eighttt}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 \def\ss{\eightss}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
83 \baselineskip=0.8\baselineskip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85 \newdimen\intercolumnskip % horizontal space between columns
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 \intercolumnskip=0.5in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 % The TeXbook, p. 257
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89 \let\lr=L \newbox\leftcolumn
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
90 \output={\if L\lr
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 \global\setbox\leftcolumn\columnbox \global\let\lr=R
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92 \else
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93 \doubleformat \global\let\lr=L\fi}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94 \def\doubleformat{\shipout\vbox{\makeheadline
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95 \leftline{\box\leftcolumn\hskip\intercolumnskip\columnbox}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 \makefootline}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97 \advancepageno}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98 \def\columnbox{\leftline{\pagebody}}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
100 \def\newcolumn{\vfil\eject}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
101
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
102 \def\bye{\par\vfil\supereject
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
103 \if R\lr \null\vfil\eject\fi
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
104 \end}
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
105
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
106 \outer\def\title#1#2{{\titlefont\centerline{#1}}\vskip 1ex plus 0.5ex
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
107 \centerline{\ss#2}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
108 \vskip2\baselineskip}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
109
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
110 \outer\def\section#1{\filbreak
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
111 \bskip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
112 \leftline{\headingfont #1}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
113 \askip}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
114 \def\bskip{\vskip 2.5ex plus 0.25ex }
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
115 \def\askip{\vskip 0.75ex plus 0.25ex}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
116
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
117 \newdimen\defwidth \defwidth=0.25\hsize
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
118 \def\hang{\hangindent\defwidth}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
119
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
120 \def\textindent#1{\noindent\llap{\hbox to \defwidth{\tt#1\hfil}}\ignorespaces}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
121 \def\key{\par\hangafter=0\hang\textindent}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
122
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
123 \def\mtextindent#1{\noindent\hbox{\tt#1\quad}\ignorespaces}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
124 \def\mkey{\par\hangafter=1\hang\mtextindent}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
125
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126 \def\kbd#{\bgroup\tt \let\next= }
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128 \newdimen\raggedstretch
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
129 \newskip\raggedparfill \raggedparfill=0pt plus 1fil
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
130 \def\nohyphens
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
131 {\hyphenpenalty10000\exhyphenpenalty10000\pretolerance10000}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
132 \def\raggedspaces
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
133 {\spaceskip=0.3333em\relax
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
134 \xspaceskip=0.5em\relax}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
135 \def\raggedright
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
136 {\raggedstretch=6em
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
137 \nohyphens
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
138 \rightskip=0pt plus \raggedstretch
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
139 \raggedspaces
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
140 \parfillskip=\raggedparfill
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
141 \relax}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142 \def\raggedcenter
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 {\raggedstretch=6em
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144 \nohyphens
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145 \rightskip=0pt plus \raggedstretch
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
146 \leftskip=\rightskip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
147 \raggedspaces
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
148 \parfillskip=0pt
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
149 \relax}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
150
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
151 \chardef\\=`\\
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
152
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
153 \raggedright
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
154 \nopagenumbers
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
155 \parindent 0pt
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
156 \interlinepenalty=10000
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
157 \hoffset -0.2in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
158 %\voffset 0.2in
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
159
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
160 %**end of header
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
161
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
162
75326
f9a6f8c0edb4 (\versionemacs): New def.
Glenn Morris <rgm@gnu.org>
parents: 75321
diff changeset
163 \title{GNU\ \ Emacs\ \ Survival\ \ Card}{for version \versionemacs}
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
164
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
165 In the following, \kbd{C-z} means hit the `\kbd{z}' key while
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
166 holding down the {\it Ctrl}\ \ key. \kbd{M-z} means hit the
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
167 `\kbd{z}' key while hitting the {\it Meta\/} (labeled {\it Alt\/}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
168 on some keyboards) or after hitting {\it Esc\/} key.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
169
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
170 \section{Running Emacs}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
171
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
172 To enter GNU Emacs, just type its name: \kbd{emacs}.
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
173 Emacs divides the frame into several areas:
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
174 menu line,
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
175 buffer area with the edited text,
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
176 mode line describing the buffer in the window above it,
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
177 and a minibuffer/echo area in the last line.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
178 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
179 \key{C-x C-c} quit Emacs
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
180 \key{C-x C-f} edit file; this command uses the minibuffer to read
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
181 the file name; use this to create new files by entering the name
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
182 of the new file
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
183 \key{C-x C-s} save the file
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
184 \key{C-x k} kill a buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
185 \key{C-g} in most context: cancel, stop, abort partially typed or
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
186 executing command
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
187 \key{C-x u} undo
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
188
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
189 \section{Moving About}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
190
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
191 \key{C-l} scroll current line to center of window
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
192 \key{C-x b} switch to another buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
193 \key{M-<} move to beginning of buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
194 \key{M->} move to end of buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
195 \key{M-x goto-line} go to a given line number
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
196
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
197 \section{Multiple Windows}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
198
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
199 \key{C-x 0} remove the current window from the display
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
200 \key{C-x 1} make active window the only window
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
201 \key{C-x 2} split window horizontally
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
202 \key{C-x 3} split window vertically
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
203 \key{C-x o} move to other window
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
204
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
205 \section{Regions}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
206
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
207 Emacs defines a `region' as the space between the {\it mark\/} and
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
208 the {\it point}. A mark is set with \kbd{C-{\it space}}.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
209 The point is at the cursor position.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
210 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
211 \key{M-h} mark entire paragraph
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
212 \key{C-x h} mark entire buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
213
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
214 \section{Killing and Copying}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
215
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
216 \key{C-w} kill region
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
217 \key{M-w} copy region to kill-ring
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
218 \key{C-k} kill from the cursor all the way to the end of the line
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
219 \key{M-DEL} kill word
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
220 \key{C-y} yank back the last kill (\kbd{C-w C-y} combination could be
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
221 used to move text around)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
222 \key{M-y} replace last yank with previous kill
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
223
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
224 \section{Searching}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
225
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
226 \key{C-s} search for a string
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
227 \key{C-r} search for a string backwards
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
228 \key{RET} quit searching
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
229 \key{M-C-s} regular expression search
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
230 \key{M-C-r} reverse regular expression search
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
231 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
232 Use \kbd{C-s} or \kbd{C-r} again to repeat the search in either direction.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
233
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
234 \section{Tags}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
235
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
236 Tags tables files record locations of function and
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
237 procedure definitions, global variables, data types and anything
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
238 else convenient. To create a tags table file, type
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
239 `{\tt etags} {\it input\_files}' as a shell command.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
240 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
241 \key{M-.} find a definition
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
242 \key{C-u M-.} find next occurrence of definition
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
243 \key{M-*} pop back to where \kbd{M-.} was last invoked
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
244 \mkey{M-x tags-query-replace} run query-replace on all files
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
245 recorded in tags table
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
246 \key{M-,} continue last tags search or query-replace
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
247
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
248 \section{Compiling}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
249
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
250 \key{M-x compile} compile code in active window
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
251 \key{C-c C-c} go to the next compiler error, when in
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
252 the compile window or
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
253 \key{C-x `} when in the window with source code
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
254
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
255 \section{Dired, the Directory Editor}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
256
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
257 \key{C-x d} invoke Dired
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
258 \key{d} flag this file for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
259 \key{\~{}} flag all backup files for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
260 \key{u} remove deletion flag
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
261 \key{x} delete the files flagged for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
262 \key{C} copy file
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
263 \key{g} update the Dired buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
264 \key{f} visit the file described on the current line
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
265 \key{s} switch between alphabetical date/time order
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
266
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
267 \section{Reading and Sending Mail}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
268
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
269 \key{M-x rmail} start reading mail
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
270 \key{q} quit reading mail
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
271 \key{h} show headers
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
272 \key{d} mark the current message for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
273 \key{x} remove all messages marked for deletion
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
274
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
275 \key{C-x m} begin composing a message
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
276 \key{C-c C-c} send the message and switch to another buffer
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
277 \key{C-c C-f C-c} move to the `CC' header field, creating one
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
278 if there is none
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
279
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
280 \section{Miscellaneous}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
281
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
282 \key{M-q} fill paragraph
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
283 \key{M-/} expand previous word dynamically
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
284 \key{C-z} iconify (suspend) Emacs when running it under X or
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
285 shell, respectively
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
286 \mkey{M-x revert-buffer} replace the text being edited with the
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
287 text of the file on disk
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
288
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
289 \section{Query Replace}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
290
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
291 \key{M-\%} interactively search and replace
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
292 \key{M-C-\%} using regular expressions
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
293 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
294 Valid responses in query-replace mode are
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
295 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
296 \key{SPC} replace this one, go on to next
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
297 \key{,} replace this one, don't move
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
298 \key{DEL} skip to next without replacing
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
299 \key{!} replace all remaining matches
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
300 \key{\^{}} back up to the previous match
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
301 \key{RET} exit query-replace
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
302 \key{C-r} enter recursive edit (\kbd{M-C-c} to exit)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
303
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
304 \section{Regular Expressions}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
305
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
306 \key{. {\rm(dot)}} any single character except a newline
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
307 \key{*} zero or more repeats
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
308 \key{+} one or more repeats
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
309 \key{?} zero or one repeat
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
310 \key{[$\ldots$]} denotes a class of character to match
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
311 \key{[\^{}$\ldots$]} negates the class
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
312
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
313 \key{\\{\it c}} quote characters otherwise having a special
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
314 meaning in regular expressions
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
315
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
316 \key{$\ldots$\\|$\ldots$\\|$\ldots$} matches one of
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
317 the alternatives (``or'')
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
318 \key{\\( $\ldots$ \\)} groups a series of pattern elements to
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
319 a single element
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
320 \key{\\{\it n}} same text as {\it n\/}th group
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
321
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
322 \key{\^{}} matches at line beginning
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
323 \key{\$} matches at line end
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
324
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
325 \key{\\w} matches word-syntax character
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
326 \key{\\W} matches non-word-syntax character
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
327 \key{\\<} matches at word beginning
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
328 \key{\\>} matches at word end
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
329 \key{\\b} matches at word break
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
330 \key{\\B} matches at non-word break
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
331
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
332 \section{Registers}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
333
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
334 \key{C-x r s} save region in register
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
335 \key{C-x r i} insert register contents into buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
336
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
337 \key{C-x r SPC} save value of point in register
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
338 \key{C-x r j} jump to point saved in register
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
339
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
340 \section{Rectangles}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
341
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
342 \key{C-x r r} copy rectangle to register
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
343 \key{C-x r k} kill rectangle
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
344 \key{C-x r y} yank rectangle
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
345 \key{C-x r t} prefix each line with a string
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
346
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
347 \key{C-x r o} open rectangle, shifting text right
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
348 \key{C-x r c} blank out rectangle
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
349
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
350 \section{Shells}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
351
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
352 \key{M-x shell} start a shell within Emacs
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
353 \key{M-!} execute a shell command
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
354 \key{M-|} run a shell command on the region
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
355 \key{C-u M-|} filter region through a shell command
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
356
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
357 \section{Spelling Check}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
358
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
359 \key{M-\$} check spelling of word at the cursor
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
360 \mkey{M-x ispell-region} check spelling of all words in region
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
361 \mkey{M-x ispell-buffer} check spelling of entire buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
362
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
363 \section{International Character Sets}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
364
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
365 \key{C-x RET C-\\} select and activate input method for
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
366 the current buffer
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
367 \key{C-\\} enable or disable input method
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
368 \mkey{M-x list-input-methods} show all input methods
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
369 \mkey{M-x set-language-environment} specify principal language
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
370
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
371 \key{C-x RET c} set coding system for next command
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
372 \mkey{M-x find-file-literally} visit file with no conversion
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
373 of any kind
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
374
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
375 \mkey{M-x list-coding-systems} show all coding systems
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
376 \mkey{M-x prefer-coding-system} choose preferred coding system
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
377
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
378 \section{Keyboard Macros}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
379
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
380 \key{C-x (} start defining a keyboard macro
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
381 \key{C-x )} end keyboard macro definition
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
382 \key{C-x e} execute last-defined keyboard macro
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
383 \key{C-u C-x (} append to last keyboard macro
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
384 \mkey{M-x name-last-kbd-macro} name last keyboard macro
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
385
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
386 \section{Simple Customization}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
387
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
388 \key{M-x customize} customize variables and faces
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
389
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
390 \section{Getting Help}
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
391
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 31151
diff changeset
392 Emacs does command completion for you. Typing \kbd{M-x}
31151
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
393 {\it tab\/} or {\it space\/} gives a list of Emacs commands.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
394 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
395 \key{C-h} Emacs help
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
396 \key{C-h t} run the Emacs tutorial
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
397 \key{C-h i} enter Info, the documentation browser
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
398 \key{C-h a} show commands matching a string (apropos)
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
399 \key{C-h k} display documentation of the function invoked by
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
400 keystroke
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
401 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
402 Emacs gets into different {\it modes}, each of which customizes
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
403 Emacs for editing text of a particular sort. The mode line
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
404 contains names of the current modes, in parentheses.
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
405 \askip
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
406 \key{C-h m} get mode-specific information
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
407
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
408 \copyrightnotice
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
409
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
410 \bye
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
411
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
412 % Local variables:
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
413 % compile-command: "tex survival"
21ca2a5ae10b New file.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
414 % End:
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
415
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
416 % arch-tag: 4f9a0562-617b-4843-aee1-450c41d6b22c