make-local-hook is removed from emacs. If you can't use the snippet, remove the call to this function, and make your add-hook function call like . . .