add-hook snippet for elisp, emacs 24.4 compatible