I want to delete trailing whitespace on save for every mode except org-mode
.
In my .emacs
, I have the following line:
(add-hook 'before-save-hook 'delete-trailing-whitespace)
I use the use-package
macro, and I tried adding (remove-hook 'before-save-hook 'delete-trailing-whitespace)
to my :config
block, but that removes the hook globally. How can I remove it specifically for org-mode
?