-*-outline-*- Frequently Asked Questions about MMM Mode ========================================= * How do I write/capitalize the name of this package/mode? However you want. The author says `MMM Mode' (and occasionally `MMM') when discussing the entire package, and `mmm-mode' when discussing the emacs mode or function. He does think, however, that `Mmm' looks rather ugly, although that is how SourceForge insists on capitalizing the name of the mailing list. * How do I get rid of that ugly gray background color? Put the following line in your Emacs initialization file: (setq mmm-submode-decoration-level 0) You may want to try using MMM Mode for a while with the background highlight, however, or merely changing it to a different color. There are two reasons it's there by default: 1. MMM Mode isn't as smart as you might hope it would be about recognizing new submode regions, so the presence or absence of the highlight can let you know at a glance where it thinks they are. 2. Just like the rest of font-lock, it helps you mentally organize the code; you can see at a glance that THIS code is executed as Perl, but THAT code is straight HTML (or whatever). You can get even more help by setting the above variable to 2, in which case regions will get a background color according to their function. * I typed `<%' (or other delimiter) but I'm still in the wrong mode. MMM Mode isn't that smart yet. You have to tell it explicitly to reparse (`C-c % C-5' or `C-c % C-b') when you add new submode regions, and both delimiters have to be present. Hopefully a future version will be able to automatically recognize new regions an you type them, but that version is not yet here. However, most submode classes provide insertion commands that remove the need to type the delimiters as well as the need to reparse the block: type `C-c % h' for a list of available insertion commands for current submode class(es). With a recent update, you can set `mmm-parse-when-idle' to t, to allow MMM Mode to reparse the buffer when it's modified and Emacs is idle. This comes at a certain performance cost. * Why is the first character of the end delimiter in the submode region? It isn't. When your cursor looks like it is over that character, it is actually *before* that character and therefore inside the submode region. You can check that the offending character does not have the background highlight--that is, if you haven't set the decoration level to 0. For example, in the following text (where -!- represents the cursor position) print <, or check out the MMM Mode web site, , there is a link to the subscription page for the MMM Mode mailing list. When asking a question or reporting a problem, be sure to give the versions of emacs and MMM Mode you are using, and any other relevant information.