-
Notifications
You must be signed in to change notification settings - Fork 51
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
flycheck-mode hook and dir-locals #58
Comments
Just learned that the order of the hooks matters. The issue is only there if the flycheck-mode hook comes after the dante-mode hook. |
Emacs is depressing. #ihatemyeditor Thank you very much, tho. |
Did you get to the bottom of why the flycheck-mode hook was needed? |
No, right now I have an “if it works I freakin’ don’t care” relation w/ Emacs. :throw_up: But I think I remember a similar problem with Scala and its ENSIME. Maybe let’s… /cc @fommil? |
hmm, I think this sounds familiar as documented Emacs behaviour due to the load order of |
btw, it sounds hacky, but I'm actually fine with the Emacs approach. I don't believe anybody has solved the generic problem of load order for any customisable system automatically. Even my xbox computer games have a "load order" for mods, which is the same problem, in a different guise. When customising a core tool, we have to open up the hood sometimes. FYI additional thing... when I load
Which is the escape hatch. |
the other thing (users must then use I recommend that anything project-specific be made buffer local in a similar fashion. |
@joehealy I actually found out that the hook wasn't really necessary for me in the first place. 😕 |
@fommil, thank you for all the details! =) |
@michalrus no problem, I hope to one day be a) a haskell developer b) using this mode. |
I very much recommend the switch. It’s been an amazing experience so far for me. ^.^ |
it's my employers who need to be convinced... |
Following this jyp/dante#58 discussion, I'm using this change in the configuration in order to get dante to work including the use of multiple targets in Nix.
This is more of a note for everyone using a
.dir-locals.el
file to setdante-target
.When using dante with the recommended entry in my
.emacs
file as described in the readme, I had an issue where every time I opened a.hs
file, thedante-target
variable would be overwritten tonil
and subsequently dante fails because cabal can't handle multiple targets. This prevented me from using Emacs' dir-locals feature to tell dante which target to use.The workaround was to remove the following flycheck-mode hook (I don't understand why this fixes the problem or why flycheck keeps working without this line):
The text was updated successfully, but these errors were encountered: