post_install() {
  post_upgrade $1

cat << EOF
==> For GNU Emacs, the recommended way to activate AUCTeX and preview-latex is to add the
==> following lines to your ~/.emacs file:
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
EOF
}

post_upgrade() {
  texconfig-sys rehash 2> /dev/null
}

pre_remove() {
 texconfig-sys rehash 2> /dev/null
}
