| 1 |
Subject: Document how to limit candidate languages. |
| 2 |
Forwarded: https://github.com/nschum/auto-dictionary-mode/pull/23 |
| 3 |
From: Nicholas D Steeves <[email protected]> |
| 4 |
Date: Fri, 22 Nov 2019 19:48:14 -0500 |
| 5 |
|
| 6 |
Closes #15 |
| 7 |
--- |
| 8 |
README.md | 12 ++++++++++++ |
| 9 |
1 file changed, 12 insertions(+) |
| 10 |
|
| 11 |
diff --git a/README.md b/README.md |
| 12 |
index e8338ad..c71acab 100644 |
| 13 |
--- a/README.md |
| 14 |
+++ b/README.md |
| 15 |
@@ -22,3 +22,15 @@ change it and stop automatic checks. |
| 16 |
You can use `adict-change-dictionary-hook` to hook into any of these changes, |
| 17 |
or `adict-conditional-insert` to insert text (like signatures) that will |
| 18 |
automatically conform to the language. |
| 19 |
+ |
| 20 |
+To limit the candidate languages when guessing which dictionary to use, add |
| 21 |
+something like the following to your Emacs config: |
| 22 |
+```elisp |
| 23 |
+(eval-after-load "auto-dictionary" |
| 24 |
+ '(setq adict-dictionary-list |
| 25 |
+ (mapcar 'adict--guess-dictionary-cons |
| 26 |
+ '(("en" . "en") |
| 27 |
+ ("fr" . "fr"))))) |
| 28 |
+``` |
| 29 |
+Get the full list from `adict-dictionary-list` in auto-dictionary.el, or |
| 30 |
+alternatively use the Customize interface to do this. |