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

Not possible to set "interaction mode"? #375

Closed
cmyzie28 opened this issue Nov 15, 2014 · 8 comments
Closed

Not possible to set "interaction mode"? #375

cmyzie28 opened this issue Nov 15, 2014 · 8 comments

Comments

@cmyzie28
Copy link

I just installed haskell-mode from git, and when I try to run an interactive command, I get the error:

You tried to do an interaction command, but an interaction mode has not been enabled yet.

Run M-x describe-variable haskell-mode-hook for a list of such modes.

If I try to configure haskell-mode-hook, I can set things like indent mode but there is nothing about picking the interactive mode. Does the error message need to be updated?

@creichert
Copy link

I'm not certain whether the docs need to be updated but I have this line
in my config:

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

Have you tried that?

@chrisdone
Copy link
Member

It may be time to enable interactive-haskell-mode by default, given these configuration problems. @hvr what sayeth thee?

@cmyzie28
Copy link
Author

@creichert Thanks, that did the trick. I had tried turn-on-interactive-haskell-mode, not knowing elisp and thinking that would work, but I guess not.

@purcell
Copy link
Member

purcell commented Nov 16, 2014

It may be time to enable interactive-haskell-mode by default, given these configuration problems. @hvr what sayeth thee?

+1 from me.

@k-bx
Copy link
Contributor

k-bx commented Mar 5, 2015

+1 from me. Should we reopen this issue?

@gracjan
Copy link
Contributor

gracjan commented Mar 5, 2015

Although @cmyzie28 got his problem resolved there should a better solution.

@gracjan gracjan reopened this Mar 5, 2015
@gracjan
Copy link
Contributor

gracjan commented Mar 27, 2015

Note: making interactive-haskell a default deserves a more prominent entry than a comment in other issue. Closing this one as fixed.

@gracjan gracjan closed this as completed Mar 27, 2015
@codygman
Copy link
Contributor

codygman commented May 2, 2015

I had this problem recently and the error message was:

maybe adding a helpful message to the M-x describe-variable haskell-mode-hook help screen such as this:

Having problems using interactive mode? Try adding this to your .emacs:

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

Would make it better.

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

7 participants