From: "Christian Faulhammer (fauli)" <fauli@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] emacs r1284 - emacsguide
Date: Thu, 02 Jul 2009 08:43:43 +0000 [thread overview]
Message-ID: <E1MMHtP-0007fa-9C@stork.gentoo.org> (raw)
Author: fauli
Date: 2009-07-02 08:43:43 +0000 (Thu, 02 Jul 2009)
New Revision: 1284
Modified:
emacsguide/emacsguide.xml
Log:
Add another chapter with sections collected
Modified: emacsguide/emacsguide.xml
===================================================================
--- emacsguide/emacsguide.xml 2009-07-02 08:28:30 UTC (rev 1283)
+++ emacsguide/emacsguide.xml 2009-07-02 08:43:43 UTC (rev 1284)
@@ -251,6 +251,8 @@
</chapter>
<chapter>
+ <title>Useful functions in GNU Emacs</title>
+ <section>
<title>Dired</title>
<body>
<p>Lets start by looking at some files.</p>
@@ -267,7 +269,20 @@
<pre caption="Code Sample">
Control-x, control-b
</pre>
+
+ <p>Now you may wish to do replacements in many files.</p>
+ <pre caption="Code Sample">
+ <p>M-x dired<TAB><TAB></p>
+ <p>M-x command-apropos <comment>This can show any dired command.</comment></p>
+ </pre>
+ <p>Now you see what is available. Here is one strategy.</p>
+ <pre caption="Code Sample">
+ <p>M-x find-grep-dired</p>
+ <p>%-m c$ <comment>This will mark C sources or filenames ending in c.</comment></p>
+ <p>M-x dired-do-query-replace-regexp</p>
+ </pre>
+
<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>
<pre caption="Code Sample">
C-x 0 <comment>This makes the current buffer go away.</comment>
@@ -276,6 +291,43 @@
C-x 3 <comment>This is useful if you have a wide screen.</comment>
</pre>
</body>
+ </section>
+ <section>
+ <title>Speedbar for Debugging and Navigation</title>
+ <body>
+ <p>
+ If you're coding C, and you use <c>gcc -g</c> for debugging
+ symbols, Emacs can split your screen and follow the current line
+ of source code. If you use Emacs with X try speedbar.
+ </p>
+ <pre caption="Code Sample">
+ M-x speedbar
+ </pre>
+
+ <p>
+ Now watch variables change just like any other development
+ environment. You could also browse directories in speedbar or do
+ other things by right-clicking.
+ </p>
+ </body>
+ </section>
+ <section>
+ <title>Ediff</title>
+ <body>
+ <p>
+ Since Gentoo respects your /etc/ configuration files, you may
+ like <c>ediff</c> for file foo and ._cfg0000_foo.
+ </p>
+ <pre caption="Code Sample">
+ <p>
+ You could run M-x find-dired with an argument like this: -name
+ \._cfg*
+ </p>
+ <p>Control-x, control-f, control-a, control-k, /etc, enter.</p>
+ <p>M-x ediff</p>
+ </pre>
+ </body>
+ </section>
</chapter>
<chapter>
@@ -309,26 +361,6 @@
</chapter>
<chapter>
- <title>Speedbar for Debugging and Navigation</title>
- <body>
- <p>
- If you're coding C, and you use <c>gcc -g</c> for debugging
- symbols, Emacs can split your screen and follow the current line
- of source code. If you use Emacs with X try speedbar.
- </p>
- <pre caption="Code Sample">
- M-x speedbar
- </pre>
-
- <p>
- Now watch variables change just like any other development
- environment. You could also browse directories in speedbar or do
- other things by right-clicking.
- </p>
- </body>
- </chapter>
-
- <chapter>
<title>Complete Text</title>
<body>
<p>Now is where some completion becomes useful. There is M-/ to complete a string and also some elisp that does much more.</p>
@@ -400,22 +432,6 @@
</chapter>
<chapter>
- <title>More Dired</title>
- <p>Now you may wish to do replacements in many files.</p>
- <pre caption="Code Sample">
- <p>M-x dired<TAB><TAB></p>
- <p>M-x command-apropos <comment>This can show any dired command.</comment></p>
- </pre>
-
- <p>Now you see what is available. Here is one strategy.</p>
- <pre caption="Code Sample">
- <p>M-x find-grep-dired</p>
- <p>%-m c$ <comment>This will mark C sources or filenames ending in c.</comment></p>
- <p>M-x dired-do-query-replace-regexp</p>
- </pre>
- </chapter>
-
- <chapter>
<title>Remove Comments</title>
<p>
One common thing for Gentoo users is to strip comments from
@@ -429,22 +445,8 @@
</chapter>
<chapter>
- <title>Ediff</title>
- <p>
- Since Gentoo respects your /etc/ configuration files, you may
- like <c>ediff</c> for file foo and ._cfg0000_foo.
- </p>
- <pre caption="Code Sample">
- <p>
- You could run M-x find-dired with an argument like this: -name
- \._cfg*
- </p>
- <p>Control-x, control-f, control-a, control-k, /etc, enter.</p>
- <p>M-x ediff</p>
- </pre>
</chapter>
-
<chapter>
<title>Macros</title>
<p>
reply other threads:[~2009-07-02 8:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1MMHtP-0007fa-9C@stork.gentoo.org \
--to=fauli@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox