1 |
Author: fauli |
2 |
Date: 2009-07-02 08:59:23 +0000 (Thu, 02 Jul 2009) |
3 |
New Revision: 1287 |
4 |
|
5 |
Modified: |
6 |
emacsguide/emacsguide.xml |
7 |
Log: |
8 |
Add a body tag |
9 |
|
10 |
|
11 |
Modified: emacsguide/emacsguide.xml |
12 |
=================================================================== |
13 |
--- emacsguide/emacsguide.xml 2009-07-02 08:58:45 UTC (rev 1286) |
14 |
+++ emacsguide/emacsguide.xml 2009-07-02 08:59:23 UTC (rev 1287) |
15 |
@@ -254,43 +254,45 @@ |
16 |
<title>Basics</title> |
17 |
<section> |
18 |
<title>Emacs Lisp</title> |
19 |
- <p> |
20 |
- You could use the lisp interpreter to make lists or do some |
21 |
- simple math. Type these in and then type control-x, control-e |
22 |
- with the cursor at the end of them. Watch the minibuffer at the |
23 |
- bottom of the screen. |
24 |
- </p> |
25 |
- <pre caption="Code Sample"> |
26 |
- (list 'a 'b 'c) |
27 |
- (+ 1 2 3) |
28 |
- (* (* 2 2) (/ 22 7)) |
29 |
- (message "%s" "This is an introduction to using Emacs in Gentoo.") |
30 |
- </pre> |
31 |
- <p> |
32 |
- Understanding how to navigate the cursor over lists is quite |
33 |
- useful. With the cursor pointed on a [, (, or {, use M-C-f to |
34 |
- go to the end. Use M-C-b to go to the beginning of the list. |
35 |
- That is escape, control-f and escape, control-b |
36 |
- respectively. |
37 |
- </p> |
38 |
- <p>You could load your elisp.</p> |
39 |
- <pre caption="Code Sample"> |
40 |
- M-x load-file |
41 |
- </pre> |
42 |
- <p> |
43 |
- Now, you may want to clean up your code or make replacements in a |
44 |
- function. Click and drag or use control-space to set a mark. |
45 |
- </p> |
46 |
- <pre caption="Code Sample"> |
47 |
- M-x transient-mark-mode |
48 |
- </pre> |
49 |
- <p> |
50 |
- That will toggle the highlighting of selected text. Now, M-% will |
51 |
- prompt you to search and replace or query-replace. Also, |
52 |
- global-font-lock-mode will toggle the syntax highlighting; |
53 |
- indent-region will nicely indent nested code blocks or HTML. A quick |
54 |
- comment comes from M-; or escape-semicolon. |
55 |
- </p> |
56 |
+ <body> |
57 |
+ <p> |
58 |
+ You could use the lisp interpreter to make lists or do some |
59 |
+ simple math. Type these in and then type control-x, control-e |
60 |
+ with the cursor at the end of them. Watch the minibuffer at the |
61 |
+ bottom of the screen. |
62 |
+ </p> |
63 |
+ <pre caption="Code Sample"> |
64 |
+ (list 'a 'b 'c) |
65 |
+ (+ 1 2 3) |
66 |
+ (* (* 2 2) (/ 22 7)) |
67 |
+ (message "%s" "This is an introduction to using Emacs in Gentoo.") |
68 |
+ </pre> |
69 |
+ <p> |
70 |
+ Understanding how to navigate the cursor over lists is quite |
71 |
+ useful. With the cursor pointed on a [, (, or {, use M-C-f to |
72 |
+ go to the end. Use M-C-b to go to the beginning of the list. |
73 |
+ That is escape, control-f and escape, control-b |
74 |
+ respectively. |
75 |
+ </p> |
76 |
+ <p>You could load your elisp.</p> |
77 |
+ <pre caption="Code Sample"> |
78 |
+ M-x load-file |
79 |
+ </pre> |
80 |
+ <p> |
81 |
+ Now, you may want to clean up your code or make replacements in a |
82 |
+ function. Click and drag or use control-space to set a mark. |
83 |
+ </p> |
84 |
+ <pre caption="Code Sample"> |
85 |
+ M-x transient-mark-mode |
86 |
+ </pre> |
87 |
+ <p> |
88 |
+ That will toggle the highlighting of selected text. Now, M-% will |
89 |
+ prompt you to search and replace or query-replace. Also, |
90 |
+ global-font-lock-mode will toggle the syntax highlighting; |
91 |
+ indent-region will nicely indent nested code blocks or HTML. A quick |
92 |
+ comment comes from M-; or escape-semicolon. |
93 |
+ </p> |
94 |
+ </body> |
95 |
</section> |
96 |
<section> |
97 |
<title>Invoking Processes</title> |