diff --git a/LDP/howto/linuxdoc/Emacs-Beginner-HOWTO.sgml b/LDP/howto/linuxdoc/Emacs-Beginner-HOWTO.sgml index d130486c..07a5dff7 100644 --- a/LDP/howto/linuxdoc/Emacs-Beginner-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Emacs-Beginner-HOWTO.sgml @@ -3,11 +3,9 @@
Emacs Beginner's HOWTO -Jeremy D. Zawodny, +Jeremy D. Zawodny: - -v1.7, 14 October 1999 - +v1.12, 2001-25-03 @@ -27,7 +25,7 @@ version of this document is usually available from Copyright -

Copyright © 1998 - 1999 Jeremy D. Zawodny. Permission to +

Copyright © 1998 - 2001 Jeremy D. Zawodny. Permission to distribute and modify this document is granted under the GNU General Public License. An on-line copy is available at When I'm writing text for human consumpiton, I typically want it -to look good. It should be properly word-wrapped to a reasonble value +

When I'm writing text for human consumption, I typically want it +to look good. It should be properly word-wrapped to a reasonable value and so on. To enable word wrapping I just turn on the auto-fill minor mode. This mode tries to do the Right Thing when I'm typing along and hit the end of the line. The fact that it is @@ -582,7 +580,7 @@ automatically adding comments to your code, creating Makefiles, updating Change Logs and so on.

When you add all these modes together and consider the maturity and -stability of the Emacs code, it compares quite nicely to commerically +stability of the Emacs code, it compares quite nicely to commercially marketed Integrated Development Environments (IDEs) for languages like C++ and Java. And, of course, it's free. @@ -609,7 +607,7 @@ history and why there are two modes (the docs don't say), but it would appear that perl-mode was the original mode for editing Perl code in Emacs. It seems to have fewer features than cperl-mode and is lacking the ability to recognize some of -Perl's fancier langugage constructs. +Perl's fancier language constructs.

Personally, I use and recommend cperl-mode which seems to be quite actively maintained and has just about every feature I could @@ -671,7 +669,7 @@ while. If you have GNU ispell installed, you can type M-x ispell and spell-check the current buffer. If ispell finds words that it doesn't know, it prompts you with a list of possible replacements and lets you select one (or none) of them. It's -functionally equivelant to the spell-checkers in many popular non-free +functionally equivalent to the spell-checkers in many popular non-free software packages. @@ -694,7 +692,7 @@ fashioned way.

When you're writing documents in TeX, it's often helpful to get Emacs to add some color and highlight the backslashes, braces and -other charcters. tex-mode takes care of that for you. +other characters. tex-mode takes care of that for you.

Though I don't write much directly in TeX anymore, when I did this mode proved to be quite helpful in making my TeX source a bit more @@ -814,7 +812,7 @@ find it documented in the Emacs documentation.

Virtually all Emacs customization is done via Lisp code. You can modify variables which influence the way Emacs operates or you can add new functions to Emacs (or override existing functions--replacing them -with your own. +with your own). Temporary Customization @@ -822,7 +820,7 @@ with your own. to do it in a way that is temporary. If you do something horribly wrong, you can just C-x C-c to exit emacs and run it again. Once you've figured out what changes you'd like to make -permenant, you can add them to your very own .emacs file so +permanent, you can add them to your very own .emacs file so that they take effect every time you start Emacs. This is discussed in the next section. @@ -838,7 +836,7 @@ of a variable in Emacs. The list code to do this looks like this:

Where variable-name is the name of the variable and new-value is the value you'd like to give the variable. (In Lisp-speak, you're binding a variable to a value.) The setq -function in lisp is analagous to the assignment operators (ususally +function in lisp is analogous to the assignment operators (usually =) in other programming languages.

NOTE: I'm glossing over many details here for the sake of @@ -855,8 +853,8 @@ feel free to look them up in an Emacs Lisp reference.

The variable transient-mark-mode controls whether or not a region becomes highlighted when I mark it. In many GUI applications, if you click and drag the mouse to select a range of text it becomes -hilighted in reverse video or some other color. Emacs will do the same -thing it the transient-mark-mode varible is set (to a non-nil +hi-lighted in reverse video or some other color. Emacs will do the same +thing it the transient-mark-mode variable is set (to a non-nil value).

A WHAT value? @@ -888,11 +886,11 @@ set the value to something absurd, you could type: (setq fill-column 20) -

But that won't actaully do anything. You need to tell Emacs to +

But that won't actually do anything. You need to tell Emacs to evaluate the expression you typed. To do so, put the point (cursor) at the end of the expression end then type C-x C-e, which calls the function eval-last-sexp in case you -care. When you do that, noice that 20 (or whatever value you +care. When you do that, notice that 20 (or whatever value you used) is echoed back to you in the mini-buffer at the bottom of the screen. That's just the return value from the expression you evaluated. @@ -929,7 +927,7 @@ pair contains a regular expression and an Emacs mode name. If a file you open matches the regular expression (in this case, the string README) Emacs starts the mode you specified. -

The funny syntax above is because we're actaully adding another +

The funny syntax above is because we're actually adding another pair to that mode list. You wouldn't want to just assign to auto-mode-alist without making sure the values that it already contains aren't lost. @@ -964,7 +962,7 @@ more software products don't let you do that.

In case you haven't already guessed, every time you start Emacs, it looks for a file named .emacs in your home directory. Your .emacs file is where you should put any Lisp code that you -want run automatiaclly and that includes the sort of customization +want run automatically and that includes the sort of customization we've been dealing with here.

Another example from my .emacs file: @@ -993,8 +991,8 @@ file in order to make the mode or package work in a particular way. The Customize Package -

As Emacs has grown in popularity and continuted to evolved, someone -eventaully said ``there has to be a better way to let novice users +

As Emacs has grown in popularity and continued to evolved, someone +eventually said ``there has to be a better way to let novice users customize their Emacs.'' And customize was born.

Customize provides a more intuitive method of customizing parts of @@ -1018,7 +1016,7 @@ about it..

Like any well behaved X application, Emacs respects your X resources. That means you can control the initial colors, geometry, -and other X specfic things just as you could with an xterm, +and other X specific things just as you could with an xterm, nxterm, or whatever.

Here's the relevant bit of my ~/.Xdefaults file: @@ -1108,9 +1106,9 @@ name="http://www.gnus.org/">. -BBDB (A rollodex) +BBDB (A rolodex) -

BBDB is an Insidious Big Brother Database, a rollodex-like program +

BBDB is an Insidious Big Brother Database, a rolodex-like program for Emacs that works with most of the popular Emacs Mail packages (VM and GNUS included). @@ -1159,11 +1157,6 @@ books also contain a chapter or two about Emacs (and vi).

Publisher: O'Reilly & Associates - -

You can buy it at a discount from Amazon.com via their Associates -program: -

Commentary: This is probably the best book to start with. After you've read the HOWTO and looked through the FAQ this book serves as a comprehensive and very approachable tutorial. @@ -1177,11 +1170,6 @@ serves as a comprehensive and very approachable tutorial.

Publisher: O'Reilly & Associates - -

You can buy it at a discount from Amazon.com via their Associates -program: -

Commentary: After you've used Emacs for a while and have decided that you'd like to try writing your own mode or maybe try out some advanced customization, this is the book for you. While it @@ -1207,11 +1195,6 @@ environment. the GNU FTP server: . -

You can buy a nicely printed version from Amazon.com via their -Associates program: . -

Commentary: This a good introductory manual for Emacs Lisp--even if you're not a heavy-duty programmer. @@ -1271,12 +1254,18 @@ are: Mailing Lists +

There is a mailing list for GNU Emacs which is hosted by the Free +Software Foundation. See the web site for more +information. +

The only mailing list devoted to Emacs that I know of right now is the NT-Emacs list. It is a list for folks who are using the Micro$oft Windows version of Emacs. See the NT-Emacs FAQ for -more. information. +more information. @@ -1321,6 +1310,9 @@ document. +Craig Lyons + Robert Vollmert @@ -1358,3 +1350,4 @@ url="mailto:smoke@casema.net">

+