Prefer ispell instead aspell. Use 'command -v' instead 'which' utility for portability.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 04 Jan 2011 23:51:10 +0200
changeset 574 dfd8ec51803a
parent 573 c28b88b60ed0
child 575 d2730823e23f
Prefer ispell instead aspell. Use 'command -v' instead 'which' utility for portability.
.emacs-autogen.sh
--- 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