overtone / emacs-live

M-x start-hacking
http://overtone.github.com/emacs-live/
Other
1.52k stars 241 forks source link

live-cleanup-whitespace before-save-hook markdown-mode #119

Open solussd opened 11 years ago

solussd commented 11 years ago

Is it possible to have the before-save-hook 'live-cleanup-whitespace' disabled for certain modes, e.g., markdown-mode (because trailing whitespace is significant)?

I know this is really a broader emacs/elisp question, but I'm at a loss on how to do this. It is added here: https://github.com/overtone/emacs-live/blob/master/packs/live/foundation-pack/config/built-in.el#L77

solussd commented 11 years ago

Here's a "fix": https://github.com/overtone/emacs-live/pull/120