New mode-hooks, better emacs23 support