Next: , Previous: Loading and Saving Dictionaries, Up: Dictionaries


5.3 Basic Dictionary Usage

The name of the main dictionary used by a buffer is stored in the buffer-local predictive-main-dict variable. Note that the variable usually contains the name of the dictionary (a symbol), not the dictionary itself. This is the dictionary predictive mode will normally search in when looking for completions.

predictive-main-dict can also hold a list of dictionary names. They are then treated as though they form one combined dictionary. However, when predictive-auto-add-to-dict is used, words are always added to the first dictionary in the list. See Automatic Learning.

predictive-set-main-dict
This function can be used as a convenience to set the main dictionary for the current buffer. You will only be able to select dictionaries that are already loaded (see Loading and Saving Dictionaries). If you want to set the default main dictionary permanently, customize predictive-main-dict instead.