# HG changeset patch # User Oleksandr Gavenko # Date 1477689278 -10800 # Node ID 78d0fef31a4be2ea9a023915de9143f527f8f926 # Parent b1f7af188fa2af86086c7b9805dd262558efb37b Use American English variant for spell checking. Prefer aspell to ispell. diff -r b1f7af188fa2 -r 78d0fef31a4b .emacs-autogen.sh --- a/.emacs-autogen.sh Thu Oct 13 21:17:44 2016 +0300 +++ b/.emacs-autogen.sh Sat Oct 29 00:14:38 2016 +0300 @@ -53,7 +53,7 @@ echo '(setq-default ispell-program-name "ispell")' case $host_distro in debian) - echo '(setq-default ispell-local-dictionary "british")' + echo '(setq-default ispell-local-dictionary "american")' ;; unknown) echo '(setq-default ispell-local-dictionary "default")' @@ -63,7 +63,7 @@ print_aspell() { echo '(setq-default ispell-program-name "aspell")' - echo '(setq-default ispell-local-dictionary "en")' + echo '(setq-default ispell-local-dictionary "en_US")' } print_speller() { @@ -73,27 +73,12 @@ check_aspell aspell_present=$? case $host_os in - windows) - case $host_distro in - cygwin) - if [ $aspell_present = 0 ]; then - print_aspell - elif [ $ispell_present = 0 ]; then - print_ispell - fi - ;; - esac - ;; - linux) - case $host_distro in - debian) - if [ $ispell_present = 0 ]; then - print_ispell - elif [ $aspell_present = 0 ]; then - print_aspell - fi - ;; - esac + windows|linux) + if [ $aspell_present = 0 ]; then + print_aspell + elif [ $ispell_present = 0 ]; then + print_ispell + fi ;; darwin) print_aspell