Do not run flycheck checker on .hrl files
They do not work, even flymake for Erlang does not do that
This commit is contained in:
parent
2d10f6f06f
commit
2a63e5f9e5
1 changed files with 11 additions and 5 deletions
16
20erlang.el
16
20erlang.el
|
|
@ -1,8 +1,8 @@
|
||||||
;; Add erlang installation to load path
|
;; Add erlang installation to load path
|
||||||
(setq erlang-asdf-root "/Users/maciej/.asdf/installs/erlang/21.3.8/")
|
(setq erlang-asdf-root "/Users/maciej/.asdf/installs/erlang/22.0.4/")
|
||||||
|
|
||||||
(setq load-path
|
(setq load-path
|
||||||
(cons (format "%slib/tools-3.1/emacs" erlang-asdf-root)
|
(cons (format "%slib/tools-3.2/emacs" erlang-asdf-root)
|
||||||
load-path))
|
load-path))
|
||||||
|
|
||||||
(require 'erlang-start)
|
(require 'erlang-start)
|
||||||
|
|
@ -20,11 +20,10 @@
|
||||||
:error-patterns
|
:error-patterns
|
||||||
((warning line-start (file-name) ":" line ": Warning:" (message) line-end)
|
((warning line-start (file-name) ":" line ": Warning:" (message) line-end)
|
||||||
(error line-start (file-name) ":" line ": " (message) line-end))
|
(error line-start (file-name) ":" line ": " (message) line-end))
|
||||||
:modes (erlang-mode))
|
:modes (my-erlang-mode))
|
||||||
|
|
||||||
(defun activate-erlang-mode ()
|
(defun activate-erlang-mode ()
|
||||||
"All things for Erlang."
|
"All things for all Erlang, including header files."
|
||||||
(flycheck-select-checker 'erlang-otp)
|
|
||||||
|
|
||||||
;; Set specific ctags command
|
;; Set specific ctags command
|
||||||
(setq-local
|
(setq-local
|
||||||
|
|
@ -39,3 +38,10 @@
|
||||||
'(company-etags company-yasnippet)))
|
'(company-etags company-yasnippet)))
|
||||||
|
|
||||||
(add-hook 'erlang-mode-hook 'activate-erlang-mode)
|
(add-hook 'erlang-mode-hook 'activate-erlang-mode)
|
||||||
|
|
||||||
|
(define-derived-mode my-erlang-mode erlang-mode "My Erlang mode"
|
||||||
|
"A mode for Erlang things"
|
||||||
|
|
||||||
|
(activate-erlang-mode)
|
||||||
|
;; Enable flycheck
|
||||||
|
(flycheck-select-checker 'erlang-otp))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue