Skip to content

Instantly share code, notes, and snippets.

@aaronjensen
Created March 8, 2016 06:36
Show Gist options
  • Select an option

  • Save aaronjensen/16ee672528bd47bc601b to your computer and use it in GitHub Desktop.

Select an option

Save aaronjensen/16ee672528bd47bc601b to your computer and use it in GitHub Desktop.
(with-eval-after-load 'flycheck
(flycheck-define-checker elixir-dialyzer
"Erlang syntax checker based on dialyzer."
:command ("mix" "dialyzer")
:default-directory (lambda ()
(locate-dominating-file default-directory "mix.exs"))
:error-patterns
((error line-start
(file-name)
":"
line
":"
(message)
line-end))
:modes elixir-mode)
(add-to-list 'flycheck-checkers 'elixir-dialyzer t))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment