#771770 haskell-mode copiously displays its documentation

#771770#5
Date:
2014-12-02 08:10:20 UTC
From:
To:
Dear Maintainer,

When a newline is entered into a buffer in Haskell mode, the view is
split and a *Help* buffer appears displaying documentation for
haskell-mode-hook.  That is, it displays:

This occurs even when starting emacs as `emacs -q test.hs`, suggesting
this is not a problem with my configuration.

Thanks!

#771770#10
Date:
2014-12-02 09:44:18 UTC
From:
To:
Robbie Harwood <rharwood@club.cc.cmu.edu> writes:

In fact it's not quite being copious enough. In emacs23 (I didn't have
24.3 on hand) it actually tells you that you want to
turn-on-haskell-indent or equivalent to set up some haskell indentation
mode.  You will notice a similar strange effect if you hit tab. I think
the best workaround is to add a more complete configuration for
haskell-mode to your .emacs.d/init.el.

I doubt I'll personally have time to work on a better default config
before "Freeze Hardening" on December 5th, so we may have to live with
this for Jessie unless Barak has some inspiration.

d

#771770#15
Date:
2014-12-28 16:39:55 UTC
From:
To:
David Bremner <david@tethera.net> writes:

Makes sense.  The problem I'm having is that it's not clear how to turn
it off, especially since I don't want any indentation.

#771770#20
Date:
2014-12-29 12:43:33 UTC
From:
To:
Robbie Harwood <rharwood@club.cc.cmu.edu> writes:

I think what you want then is to turn off electric-indent-mode, perhaps
in a hook of haskell-mode. I have a vague memory that the default for
this mode changed in 24.4.

UNTESTED:

(add-hook 'haskell-mode-hook
          (lambda ()
                  (electric-indent-local-mode -1)))
d

#771770#25
Date:
2014-12-29 13:40:58 UTC
From:
To:
David Bremner <david@tethera.net> writes:

That is exactly what I want, thanks!