Skip to content

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

@Tails

Description

@Tails

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions