Prefer ispell instead aspell. Use 'command -v' instead 'which' utility for portability.
--- a/.emacs-autogen.sh Sun Jan 02 21:03:16 2011 +0200
+++ b/.emacs-autogen.sh Tue Jan 04 23:51:10 2011 +0200
@@ -7,12 +7,12 @@
cfg=$1
-if which aspell; then
+if command -v ispell; then
+ echo >>$cfg
+ echo "(setq-default ispell-program-name \"ispell\")" >>$cfg
+ echo "(setq-default ispell-local-dictionary \"english\")" >>$cfg
+elif command -v aspell; then
echo >>$cfg
echo "(setq-default ispell-program-name \"aspell\")" >>$cfg
- echo "(setq-default ispell-local-dictionary \"english\")" >>$cfg
-elif which ispell; then
- echo >>$cfg
- echo "(setq-default ispell-program-name \"ispell\")" >>$cfg
echo "(setq-default ispell-local-dictionary \"default\")" >>$cfg
fi