Automatic preferences let you set up a custom configuration that will be automatically loaded whenever you open a file with a given extension. For instance, you could like a TAB size of three while editing C sources, but eight could be more palatable while writing electronic mail.
The use of this feature is definitely straightforward: you simply use the
Save AutoPrefs' menu item (or the
see SaveAutoPrefs) when the current document has the given extension, and
the current configuration suits your tastes. The internal status of a series of
options will be recorded as a macro, containing commands which reproduce the
current configuration. The macro is then saved in the `
directory (which is created, if necessary) with the name given by the
extension, postfixed with `
#ap'. Thus, the C sources automatic
preferences file will be named `
c#ap', the one of TeX files `
and so on.
The macros are generated with short or long command names depending on the status of the verbose macros flag. See VerboseMacros.
Automatic preferences file are loaded and executed whenever a file with a known extension is opened. Note that you can edit manually such files, and even insert commands, but any command which does something else than setting a flag will be rejected, and an error message will be issued.