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

Feature request: run elm-make on opening file #171

Open
Tails opened this issue Aug 8, 2019 · 0 comments
Open

Feature request: run elm-make on opening file #171

Tails opened this issue Aug 8, 2019 · 0 comments

Comments

@Tails
Copy link

Tails commented Aug 8, 2019

I might be missing a configuration combination, but currently I have to manually save an elm file (or press CTRL+S on an unchanged file) before the linter errors (atom-ide-ui) become available.

Is it possible to run the linter immediately when opening an Elm file, or when switching to an opened Elm file? If there is a Elmjutsu command available to run the compiler we could also script this ourselves using the Atom init file.

Thanks!

Edit: I managed to somewhat get what I was looking for using the following snippet in init.coffee:

atom.workspace.onDidChangeActiveTextEditor (editor) ->
  if editor and editor.getPath().endsWith('.elm') and !editor.isModified()
    editor.save()
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

1 participant