On Nov 16, 2007 12:05 PM, Valery V. Vorotyntsev <[EMAIL PROTECTED]> wrote:
> On 11/16/07, Brent Yorgey <[EMAIL PROTECTED]> 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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to