Use American English variant for spell checking. Prefer aspell to ispell.
--- 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