Created
September 21, 2015 19:54
-
-
Save BernardNotarianni/e1ada4c25df91460d19f to your computer and use it in GitHub Desktop.
flycheck erlang otp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; customize flycheck for otp standard directory structure | |
(require 'flycheck) | |
(flycheck-define-checker erlang-otp | |
"An Erlang syntax checker using the Erlang interpreter." | |
:command ("erlc" "-o" temporary-directory "-Wall" | |
"-I" "../include" "-I" "../../include" | |
"-I" "../../../include" source) | |
:error-patterns | |
((warning line-start (file-name) ":" line ": Warning:" (message) line-end) | |
(error line-start (file-name) ":" line ": " (message) line-end))) | |
(add-hook 'erlang-mode-hook | |
(lambda () | |
(flycheck-select-checker 'erlang-otp) | |
(flycheck-mode))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment