.emacs-autogen.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 25 Apr 2010 23:09:13 +0300
changeset 386 3efe37437745
child 387 7340a863ae23
permissions -rwxr-xr-x
Explore environment for abilities and tup config in ~/.emacs-autogen.

#!/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
fi