Mozilla Preferences

The quick and dirty way to set preferences is to browse to the url about:config. It is a pretty self-explanatory gui interface.

However most users of Conkeror prefer to set preferences in their meticulously organized rc scripts, instead of lost somewhere in the mozilla profile directory. The most common function you will use to set preferences in your rc script is session_pref. The second most common is user_pref. Both are called with two arguments---the string name of the preference, and the value, the type of which depends on the preference---usually a string, a number, or a boolean. First we'll describe user_pref, so you know why you need to use in in some cases, but should prefer not to.

user_pref will cause the given preference to be saved to your profile. This is necessary in rare cases of preferences whose values are read before your rc script is loaded.

session_pref will wipe out a user-pref and set the preference in a way that it will not be saved in your profile. Debugging preference setting problems is easy when you use session_pref because you can just comment out the line in your rc and be sure that the pref will not be loaded from your profile.

Conkeror itself has only one preference, conkeror.rcfile. It has to be set with user_pref because it stores the location of the rc script. (See Conkeror RC) All of Conkeror's other settings are simple javascript variables. (See User Variables)

MozillaPreferences (last edited 2008-07-09 18:23:58 by localhost)