Closed
Description
After recent updates(at least i think it's related to them) i experience following error when emacs tries to indent a haskell source:
You tried to do an indentation command, but an indentation mode has not been enabled yet.
Run M-x describe-variable haskell-mode-hook for a list of such modes.
Inspecting haskell-mode-hook
shows:
haskell-mode-hook is a variable defined in `haskell-mode.el'.
Its value is
(company-mode haskell-auto-insert-module-template flymake-hlint-load
(lambda nil
(ghc-init))
interactive-haskell-mode turn-on-haskell-indentation)
This variable may be risky if used as a file-local variable.
Documentation:
Hook run after entering Haskell mode.
No problems result if this variable is not bound.
`add-hook' automatically binds it. (This is true for all hook variables.)
I have a (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
line in my ~/.emacs
and it worked until recently. Running M-x haskell-indentation-mode
manually helps with this issue(and then it repeats with other buffers).
Metadata
Metadata
Assignees
Labels
No labels