-
Notifications
You must be signed in to change notification settings - Fork 347
haskell-mode-hook popup upon return #248
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
Comments
I think you need to choose an indentation mode at least. |
Hi @ivan-m You are correct, adding |
Maybe we should set a default (probably simple indent) just for cases like this? |
@ivan-m iirc there's an issue with circular dependencies between the |
I did write such a help buffer once that explained the various indentation types, when indentation has not been configured, but maybe it's gone. |
Oh, wait, the pop-up actually explains all this:
|
Probably what's missing is a simple line that says how to add such a hook. |
Hi @chrisdone If it provided what you are showing above in the popup that would be great, unfortunately, this is what is displayed out of the box from the melpa installation:
Maybe something is out of sync between your version and what is available on melpa? |
@developernotes what does (also, does your current haskell-mode version have any pointers into the info manual at all?) |
Hi @hvr
The info docs are installed, so section 6 on indentation is visible when viewed. |
This issue got me as well. Would have been really nice if after reading that lengthy intro I had any idea how to fix it. Instead I spent 15 minutes thinking I was crazy and almost disabled haskel-mode / renamed my file something other than .hs before stumbling on this page in my 3rd google search. This should really be modifed somehow. |
For me the issue persists after adding 'structured-haskell-mode to 'haskell-mode-hook. It should not happen because then 'haskell-mode-hook is not nil. |
Do you get the same behavior if you explicitly include a |
Yes, it did. But now i'm doing fine with |
For mere mortals like me - where do I have to add this ? Getting only half the screen size is annoying. Here is my .emacs (custom-set-variables |
@stehgold You have to add "turn-on-haskell-indentation" to the haskell mode hook.
|
Ahh, it's silently auto-indenting now. What a relief... :) Thank you, |
Oh, so this is why haskell-mode has been so unbearable for the past year for me!
The Debian package seems to include only the less informative popup. I had no idea that it had anything to do with adding an indent-mode. Actually, I don't think the version you quote is a clear explanation either. I thought I understood Emacs reasonably well, but I don't get anything like "I need to add |
I've added this line to my init.el:
And even though I've run EDIT: |
Use
(add-hook 'haskell-mode-hook 'haskell-indentation-mode)
Your version should also work but for some reason it does not. That is a bug.
|
@adnelson: Hooks are run when things happen, the hook says to enable |
Hello,
I recently installed
haskell-mode
, version20140309.342
via melpa on Emacs24.3.50.1
on OS X. I Created the a file, with the following content:After typing
Nothing
, I pressed return which triggered my screen to split and showed the help forhaskell-mode-hook
. It states that the current value is nil. Note that I do not have any customizations tohaskell-mode
, nor do I have additional haskell emacs packages. Is it correct that this is not the desired behavior?The text was updated successfully, but these errors were encountered: