# HG changeset patch # User Oleksandr Gavenko # Date 1294177870 -7200 # Node ID dfd8ec51803ac8e8b1f9498d3844c1a86b5adf0f # Parent c28b88b60ed00ea01ae8637dc606a0f96df61425 Prefer ispell instead aspell. Use 'command -v' instead 'which' utility for portability. diff -r c28b88b60ed0 -r dfd8ec51803a .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