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