.emacs-autogen.sh
changeset 575 d2730823e23f
parent 574 dfd8ec51803a
child 579 b71e74cfe817
--- 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