Emacs - change lambda function in add-hook to apply-partially with argument