Skip to content

Commit

Permalink
Document how to limit candidate languages.
Browse files Browse the repository at this point in the history
Closes #15
  • Loading branch information
sten0 committed Nov 23, 2019
1 parent b364e08 commit 9d8b8c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ change it and stop automatic checks.
You can use `adict-change-dictionary-hook` to hook into any of these changes,
or `adict-conditional-insert` to insert text (like signatures) that will
automatically conform to the language.

To limit the candidate languages when guessing which dictionary to use, add
something like the following to your Emacs config:
```elisp
(eval-after-load "auto-dictionary"
'(setq adict-dictionary-list
(mapcar 'adict--guess-dictionary-cons
'(("en" . "en")
("fr" . "fr")))))
```
Get the full list from `adict-dictionary-list` in auto-dictionary.el, or
alternatively use the Customize interface to do this.

0 comments on commit 9d8b8c5

Please sign in to comment.