Fix some problems with emacs packages