#!/bin/sh
# Copies /etc/skel.homeros/.emacs.d directory into current user account (~/.emacs.d);
# NOTE: This will automatically enable emacspeak launch at emacs startup;
# Date: 2009-04-14;
# Michael Pozhidaev <msp@altlinux.org>

if ! [ -d '/etc/skel.homeros/.emacs.d' ]; then
    echo "$0:predefined emacs configuration not found"
    echo "$0:is etcskel-homeros package installed?"
    exit 1
fi

[ -d ~/.emacs.d ] || mkdir ~/.emacs.d

cp -r /etc/skel.homeros/.emacs.d/* ~/.emacs.d
exit $?
