diff --git a/lisp/whitespace.el b/lisp/whitespace.el index 40a234f02d6..323c75ed6de 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el @@ -859,6 +859,8 @@ This is meant to be added buffer-locally to `write-file-functions'." (remove-hook 'write-file-functions 'whitespace-write-file-hook t) (remove-hook 'kill-buffer-hook 'whitespace-buffer)) +(add-hook 'whitespace-unload-hook 'whitespace-unload-hook) + (provide 'whitespace) ;;; arch-tag: 4ff44e87-b63c-402d-95a6-15e51e58bd0c