.emacs-autogen.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 01 Aug 2010 19:33:27 +0300
changeset 435 a34e8ddc9e12
parent 387 7340a863ae23
child 503 743de44a5431
permissions -rwxr-xr-x
Disable suspend by C-x C-z. It ugly.

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