.emacs-autogen.sh
changeset 503 743de44a5431
parent 387 7340a863ae23
child 504 dc4a9f76fdbf
equal deleted inserted replaced
502:64a475fa36e2 503:743de44a5431
     5   exit 1
     5   exit 1
     6 fi
     6 fi
     7 
     7 
     8 cfg=$1
     8 cfg=$1
     9 
     9 
       
    10 rm -f $cfg
       
    11 
    10 if which aspell; then
    12 if which aspell; then
    11   echo >>$cfg
    13   echo >>$cfg
    12   echo "(setq-default ispell-program-name \"aspell\")" >>$cfg
    14   echo "(setq-default ispell-program-name \"aspell\")" >>$cfg
    13   echo "(setq-default ispell-local-dictionary \"english\")" >>$cfg
    15   echo "(setq-default ispell-local-dictionary \"english\")" >>$cfg
    14 elif which ispell; then
    16 elif which ispell; then
    15   echo >>$cfg
    17   echo >>$cfg
    16   echo "(setq-default ispell-program-name \"ispell\")" >>$cfg
    18   echo "(setq-default ispell-program-name \"ispell\")" >>$cfg
    17   echo "(setq-default ispell-local-dictionary \"english\")" >>$cfg
    19   echo "(setq-default ispell-local-dictionary \"default\")" >>$cfg
    18 fi
    20 fi