.emacs-autogen.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 29 Oct 2010 17:49:26 +0300
changeset 504 dc4a9f76fdbf
parent 503 743de44a5431
child 574 dfd8ec51803a
permissions -rwxr-xr-x
Delete wrong code.

#!/bin/sh

if [ -z "$1" ]; then
  echo "Where config file?"
  exit 1
fi

cfg=$1

if which 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