.emacs-autogen.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 15 Jan 2011 17:53:29 +0200
changeset 559 290aff3dde17
parent 504 dc4a9f76fdbf
child 574 dfd8ec51803a
permissions -rwxr-xr-x
Fix: 'grep-find-ignored-files' introduced in '23.2' version of Emacs.

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