.emacs-autogen.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 14 Jan 2011 12:25:45 +0200
changeset 527 3996f4df0915
parent 504 dc4a9f76fdbf
child 574 dfd8ec51803a
permissions -rwxr-xr-x
Added exclude pattern to 'grep-find-ignored-files'.

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