disable function make-local-hook