1 |
Author: fauli |
2 |
Date: 2009-07-02 08:51:55 +0000 (Thu, 02 Jul 2009) |
3 |
New Revision: 1285 |
4 |
|
5 |
Modified: |
6 |
emacsguide/emacsguide.xml |
7 |
Log: |
8 |
Make all pre invalidites go away |
9 |
|
10 |
|
11 |
Modified: emacsguide/emacsguide.xml |
12 |
=================================================================== |
13 |
--- emacsguide/emacsguide.xml 2009-07-02 08:43:43 UTC (rev 1284) |
14 |
+++ emacsguide/emacsguide.xml 2009-07-02 08:51:55 UTC (rev 1285) |
15 |
@@ -272,15 +272,15 @@ |
16 |
|
17 |
<p>Now you may wish to do replacements in many files.</p> |
18 |
<pre caption="Code Sample"> |
19 |
- <p>M-x dired<TAB><TAB></p> |
20 |
- <p>M-x command-apropos <comment>This can show any dired command.</comment></p> |
21 |
+ M-x dired<TAB><TAB> |
22 |
+ M-x command-apropos <comment>This can show any dired command.</comment> |
23 |
</pre> |
24 |
|
25 |
<p>Now you see what is available. Here is one strategy.</p> |
26 |
<pre caption="Code Sample"> |
27 |
- <p>M-x find-grep-dired</p> |
28 |
- <p>%-m c$ <comment>This will mark C sources or filenames ending in c.</comment></p> |
29 |
- <p>M-x dired-do-query-replace-regexp</p> |
30 |
+ M-x find-grep-dired |
31 |
+ %-m c$ <comment>This will mark C sources or filenames ending in c.</comment> |
32 |
+ M-x dired-do-query-replace-regexp |
33 |
</pre> |
34 |
|
35 |
<p>That will split your screen and show the buffers that are open. When you want to split the screen, use control-x followed by a number.</p> |
36 |
@@ -319,12 +319,10 @@ |
37 |
like <c>ediff</c> for file foo and ._cfg0000_foo. |
38 |
</p> |
39 |
<pre caption="Code Sample"> |
40 |
- <p> |
41 |
- You could run M-x find-dired with an argument like this: -name |
42 |
- \._cfg* |
43 |
- </p> |
44 |
- <p>Control-x, control-f, control-a, control-k, /etc, enter.</p> |
45 |
- <p>M-x ediff</p> |
46 |
+ You could run M-x find-dired with an argument like this: -name |
47 |
+ \._cfg* |
48 |
+ Control-x, control-f, control-a, control-k, /etc, enter. |
49 |
+ M-x ediff |
50 |
</pre> |
51 |
</body> |
52 |
</section> |
53 |
@@ -335,11 +333,11 @@ |
54 |
<body> |
55 |
<p>Emacs can start subprocesses, like a shell or a debugger or even find and grep.</p> |
56 |
<pre caption="Code Sample"> |
57 |
- <p>M-x shell</p> |
58 |
- <p>M-x gdb</p> |
59 |
- <p>M-x find-grep</p> |
60 |
- <figure link="emacs.jpg" short="Find and Grep" caption="Search in Emacs"/> |
61 |
+ M-x shell |
62 |
+ M-x gdb |
63 |
+ M-x find-grep |
64 |
</pre> |
65 |
+ <figure link="emacs.jpg" short="Find and Grep" caption="Search in Emacs"/> |
66 |
|
67 |
<note>Emacs can be used on compressed text in the gzip and bzip2 formats by invoking decompressors.</note> |
68 |
</body> |
69 |
@@ -396,10 +394,10 @@ |
70 |
bottom of the screen. |
71 |
</p> |
72 |
<pre caption="Code Sample"> |
73 |
- <p>(list 'a 'b 'c)</p> |
74 |
- <p>(+ 1 2 3)</p> |
75 |
- <p>(* (* 2 2) (/ 22 7))</p> |
76 |
- <p>(message "%s" "This is an introduction to using Emacs in Gentoo.")</p> |
77 |
+ (list 'a 'b 'c) |
78 |
+ (+ 1 2 3) |
79 |
+ (* (* 2 2) (/ 22 7)) |
80 |
+ (message "%s" "This is an introduction to using Emacs in Gentoo.") |
81 |
</pre> |
82 |
<p> |
83 |
Understanding how to navigate the cursor over lists is quite |
84 |
@@ -438,9 +436,9 @@ |
85 |
configuration files. This is convenient in Emacs with flush-lines |
86 |
</p> |
87 |
<pre caption="Code Sample"> |
88 |
- <p>M-x flush-lines</p> |
89 |
- <p>^#</p> |
90 |
- <p> That will match lines beginning with a # which is a comment in most /etc configuration files.</p> |
91 |
+ M-x flush-lines |
92 |
+ ^# |
93 |
+ That will match lines beginning with a # which is a comment in most /etc configuration files. |
94 |
</pre> |
95 |
</chapter> |
96 |
|
97 |
@@ -465,20 +463,19 @@ |
98 |
<chapter> |
99 |
<title>Sample .emacs</title> |
100 |
<pre caption="Code Sample"> |
101 |
- <p>$ cat ~/.emacs.d/init.el</p> |
102 |
- <p>(prefer-coding-system 'utf-8)</p> |
103 |
- <p>(setq transient-mark-mode t)</p> |
104 |
- <p>(show-paren-mode t)</p> |
105 |
- <p>(setq column-number-mode t)</p> |
106 |
- <p>(global-set-key [(f5)] (lambda() (interactive) (woman (current-word))))</p> |
107 |
- <p>(global-set-key [(f6)] 'hippie-expand)</p> |
108 |
- <p>(global-set-key [(f7)] 'replace-regexp)</p> |
109 |
- <p>(global-set-key [(f8)] 'flush-lines)</p> |
110 |
- <p>(global-set-key [(f9)] 'dired-do-delete)</p> |
111 |
- <p></p> |
112 |
- <p># cat /root/.emacs.d/init.el</p> |
113 |
- <p>(load "/home/username/.emacs.d/init.el")</p> |
114 |
+ $ cat ~/.emacs.d/init.el |
115 |
+ (prefer-coding-system 'utf-8) |
116 |
+ (setq transient-mark-mode t) |
117 |
+ (show-paren-mode t) |
118 |
+ (setq column-number-mode t) |
119 |
+ (global-set-key [(f5)] (lambda() (interactive) (woman (current-word)))) |
120 |
+ (global-set-key [(f6)] 'hippie-expand) |
121 |
+ (global-set-key [(f7)] 'replace-regexp) |
122 |
+ (global-set-key [(f8)] 'flush-lines) |
123 |
+ (global-set-key [(f9)] 'dired-do-delete) |
124 |
+ |
125 |
+ # cat /root/.emacs.d/init.el |
126 |
+ (load "/home/username/.emacs.d/init.el") |
127 |
</pre> |
128 |
</chapter> |
129 |
- |
130 |
</guide> |