Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (fauli)" <fauli@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] emacs r1288 - emacsguide
Date: Thu, 02 Jul 2009 09:01:17
Message-Id: E1MMIAM-0008Cn-PJ@stork.gentoo.org
1 Author: fauli
2 Date: 2009-07-02 09:01:14 +0000 (Thu, 02 Jul 2009)
3 New Revision: 1288
4
5 Modified:
6 emacsguide/emacsguide.xml
7 Log:
8 Another regrouping
9
10
11 Modified: emacsguide/emacsguide.xml
12 ===================================================================
13 --- emacsguide/emacsguide.xml 2009-07-02 08:59:23 UTC (rev 1287)
14 +++ emacsguide/emacsguide.xml 2009-07-02 09:01:14 UTC (rev 1288)
15 @@ -253,6 +253,22 @@
16 <chapter>
17 <title>Basics</title>
18 <section>
19 + <title>Macros</title>
20 + <body>
21 + <p>
22 + An introduction to Emacs would not be complete without a section
23 + on macros. This is "Editor MACroS". In a buffer, type
24 + control-x, ( to begin. Then type what you want in the macro.
25 + You are recording keystrokes. Now type control-x, ) to finish
26 + the macro. Naming the macro is next with M-x
27 + name-last-kbd-macro. You could insert-kbd-macro into a .emacs
28 + file if you find it very useful. Perhaps you want to use that
29 + macro 10 times in a row. This is awkward, but control-u, 10,
30 + M-x mymacro.
31 + </p>
32 + </body>
33 + </section>
34 + <section>
35 <title>Emacs Lisp</title>
36 <body>
37 <p>
38 @@ -348,6 +364,20 @@
39 <note><c>man man</c> has this tip: (global-set-key [(f1)] (lambda () (interactive) (manual-entry (current-word))))</note>
40 </body>
41 </section>
42 + <section>
43 + <title>Remove Comments</title>
44 + <body>
45 + <p>
46 + One common thing for Gentoo users is to strip comments from
47 + configuration files. This is convenient in Emacs with flush-lines
48 + </p>
49 + <pre caption="Code Sample">
50 + M-x flush-lines
51 + ^#
52 + That will match lines beginning with a # which is a comment in most /etc configuration files.
53 + </pre>
54 + </body>
55 + </section>
56 </chapter>
57
58 <chapter>
59 @@ -429,37 +459,6 @@
60 </chapter>
61
62 <chapter>
63 - <title>Remove Comments</title>
64 - <p>
65 - One common thing for Gentoo users is to strip comments from
66 - configuration files. This is convenient in Emacs with flush-lines
67 - </p>
68 - <pre caption="Code Sample">
69 - M-x flush-lines
70 - ^#
71 - That will match lines beginning with a # which is a comment in most /etc configuration files.
72 - </pre>
73 - </chapter>
74 -
75 - <chapter>
76 - </chapter>
77 -
78 - <chapter>
79 - <title>Macros</title>
80 - <p>
81 - An introduction to Emacs would not be complete without a section
82 - on macros. This is "Editor MACroS". In a buffer, type
83 - control-x, ( to begin. Then type what you want in the macro.
84 - You are recording keystrokes. Now type control-x, ) to finish
85 - the macro. Naming the macro is next with M-x
86 - name-last-kbd-macro. You could insert-kbd-macro into a .emacs
87 - file if you find it very useful. Perhaps you want to use that
88 - macro 10 times in a row. This is awkward, but control-u, 10,
89 - M-x mymacro.
90 - </p>
91 - </chapter>
92 -
93 - <chapter>
94 <title>Sample .emacs</title>
95 <pre caption="Code Sample">
96 $ cat ~/.emacs.d/init.el