PREV UP NEXT ne's manual

3.8: Automatic Preferences

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 SaveAutoPrefs command; 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 `$HOME/.ne' 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 `tex#ap', 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.


Contact:
vigna@dsi.unimi.it - about ne
bela@www.emerson.emory.edu - about these pages