Sams Teach Yourself Emacs in 24 Hours |  | ContentsIndex
Hour 12: Visible Editing Utilities |  | Previous HourNext Hour
Sections in this Hour: |  |  |  |

## Q&A

  Q Why is parentheses matching different in GNU Emacs and XEmacs?

  A Well, they're two different programs and parentheses matching is one of the things that was modified after the time XEmacs branched off of GNU Emacs. This is one of those little things that you have to live with.

  Q Is there no simple way to make font-lock mode start by default for every mode in XEmacs?

  A Well, there is a hack. Insert the following into your .emacs file:

>     (add-hook 'find-file-hooks 'turn-on-font-lock)

  This, however, works only when you load a file into Emacs, not when creating a new buffer. But in 95% of the cases you will only just read in a new file.

  Q How do I start auto-fill mode for every buffer in text-mode?

  A Using the same method you used to start font-lock mode:

>     (add-hook 'text-mode-hooks 'auto-fill-mode)

  Q I've found some editing commands with a C-x 6.prefix--for example, C-x 6 2 (2C-two-columns)--with names that indicate that they are for two columns. How do they related to follow-mode?

  A They have nothing to do with follow-mode. The commands are for splitting a buffer at some horizontal point and then editing it in two separate buffers, one for the left side, and another for the right side. To be honest, I haven't found many applications for it, but who knows, that might be something with special interest for you.

Sams Teach Yourself Emacs in 24 Hours |  | ContentsIndex
Hour 12: Visible Editing Utilities |  | Previous HourNext Hour
Sections in this Hour: |  |  |  |

© Copyright Macmillan USA. All rights reserved.