.emacs-autogen.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 27 Jan 2011 17:30:57 +0200
changeset 563 6d5387a4e95d
parent 504 dc4a9f76fdbf
child 574 dfd8ec51803a
permissions -rwxr-xr-x
Move code to proper place. Add 'f7' key binding for 'occur'.

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