[Haskell-cafe] emacs haskellers: r-stripping files becomes popular
dbueno at gmail.com
Fri Nov 16 12:09:47 EST 2007
On Nov 16, 2007 12:05 PM, Valery V. Vorotyntsev <valery.vv at gmail.com> wrote:
> On 11/16/07, Brent Yorgey <byorgey at gmail.com> 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.
More information about the Haskell-Cafe