post_install() { cat << EOF ==> To set up Emacs to automatically edit files ending in .d[i] using D-mode ==> add the following to your ~/.emacs file (GNU Emacs) or ~/.xemacs/init.el ==> file (XEmacs): (autoload 'd-mode "d-mode" "Major mode for editing D code." t) (add-to-list 'auto-mode-alist '("\\\.d[i]?\\\'" . d-mode)) EOF } post_upgrade() { post_install $1 }