
16 Nov
2007
16 Nov
'07
12:09 p.m.
On Nov 16, 2007 12:05 PM, Valery V. Vorotyntsev
On 11/16/07, Brent Yorgey
wrote: Nice! Is there a way to have this only run if the current buffer is in haskell-mode? I'd add it myself but I've not yet taken the plunge to being an elisp hacker.
Try adding ``(eq major-mode 'haskell-mode)'' after the `and' .. .. but why would you tolerate whitespace in other modes?
For one thing, if you happen to write code shared with other people who do not use this hook, then you may end up causing *huge* numbers of spurious differences in diff(1) output. There may be an easy way to deal with this, but, it is a problem. -- Denis