- Package:
- haskell-mode
- Source:
- haskell-mode
- Submitter:
- Robbie Harwood
- Date:
- 2014-12-29 13:45:04 UTC
- Severity:
- important
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!
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
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.
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
David Bremner <david@tethera.net> writes: That is exactly what I want, thanks!