Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"File mode specification error: (void-function haskell-indentation)" #569

Closed
joehillen opened this issue Apr 2, 2015 · 4 comments
Closed

Comments

@joehillen
Copy link

I saw the announcement for the March release about the new indentation and I wanted to try it out: https://github.com/haskell/haskell-mode/wiki/Month-in-haskell-mode-March-2015

On the announcement it says to try it out add:

(add-hook 'haskell-mode-hook 'haskell-indentation)

If I do that, I get the above error. However, this works (found in the guide):

(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)

Is this a bug in the announcement?

@gracjan
Copy link
Contributor

gracjan commented Apr 2, 2015

Proper is:

(add-hook 'haskell-mode-hook 'haskell-indentation-mode)

thanks for noticing!

EDIT: -mode!, -mode!

@joehillen
Copy link
Author

@gracjan I'm confused. 'haskell-indentation gives me the error; 'turn-on-haskell-indentation does not.

@gracjan
Copy link
Contributor

gracjan commented Apr 2, 2015

I can't spell at this hour. Proper is with -mode at the end:

(add-hook 'haskell-mode-hook 'haskell-indentation-mode)

@joehillen
Copy link
Author

Got it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants