Fix default dictionary names.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 04 Jan 2011 23:55:13 +0200
changeset 575 d2730823e23f
parent 574 dfd8ec51803a
child 576 259fabfae56e
Fix default dictionary names.
.emacs-autogen.sh
--- a/.emacs-autogen.sh	Tue Jan 04 23:51:10 2011 +0200
+++ b/.emacs-autogen.sh	Tue Jan 04 23:55:13 2011 +0200
@@ -10,9 +10,13 @@
 if command -v ispell; then
   echo >>$cfg
   echo "(setq-default ispell-program-name \"ispell\")" >>$cfg
-  echo "(setq-default ispell-local-dictionary \"english\")" >>$cfg
+  if [ -e /etc/debian_version ]; then
+    echo "(setq-default ispell-local-dictionary \"british\")" >>$cfg
+  else
+    echo "(setq-default ispell-local-dictionary \"default\")" >>$cfg
+  fi
 elif command -v aspell; then
   echo >>$cfg
   echo "(setq-default ispell-program-name \"aspell\")" >>$cfg
-  echo "(setq-default ispell-local-dictionary \"default\")" >>$cfg
+  echo "(setq-default ispell-local-dictionary \"english\")" >>$cfg
 fi