.emacs-autogen.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 11 May 2010 20:01:54 +0300
changeset 395 c7f6eb04626d
parent 387 7340a863ae23
child 503 743de44a5431
permissions -rwxr-xr-x
Port to Emacs 32.2 (in 'global-font-lock-mode' error - Wrong number of arguments).

#!/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 \"english\")" >>$cfg
fi