emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/guess-language e6ffe8d 011/101: Added some documentatio


From: Stefan Monnier
Subject: [elpa] externals/guess-language e6ffe8d 011/101: Added some documentation.
Date: Sat, 23 Feb 2019 10:34:33 -0500 (EST)

branch: externals/guess-language
commit e6ffe8dc8b041d216f29fa3cac48d09663c65c2c
Author: Titus von der Malsburg <address@hidden>
Commit: Titus von der Malsburg <address@hidden>

    Added some documentation.
---
 README.org | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/README.org b/README.org
index aba450c..ee11b6e 100644
--- a/README.org
+++ b/README.org
@@ -2,3 +2,20 @@
 I write a lot of text in multiple languages and I was getting tired of 
switching the dictionary of my spell-checker all the time.  In true Emacs 
spirit, I decided to do something about this and dusted off my grandpa's 
parentheses.  The code in this repository guesses the language of the current 
paragraph and then changes the dictionary of ispell and the language-specific 
settings of typo-mode.  It also reruns flyspell on the current paragraph, but 
only on that paragraph because some docu [...]
 
 This is currently a proof of concept and only supports two languages, English 
and German.  However, it should be very easy to add more languages.
+
+** Configuration
+
+#+BEGIN_SRC elisp
+(require 'guess-language)
+
+(setq guess-language-languages '(en de))
+(setq guess-language-min-paragraph-length 30)
+#+END_SRC
+
+** Usage
+
+Activate ~guess-language-mode~ in the buffer in which you want to use it.  To 
activate is automatically in buffers containing human language (as opposed to 
programming language), you could add this to ~text-mode-hook~:
+
+#+BEGIN_SRC elisp
+(add-hook 'text-mode-hook (lambda () (guess-language-mode 1)))
+#+END_SRC



reply via email to

[Prev in Thread] Current Thread [Next in Thread]