   (setq flycheck-emacs-lisp-load-path 'inherit)
   (add-hook 'emacs-lisp-mode-hook 'flycheck-mode))
 
+(defun flycheck-4-erlang ()
+  "Flycheck settings for `erlang-mode'."
+  ;; TODO customize
+  ;; flycheck-erlang-include-path
+  ;; flycheck-erlang-library-path
+  (add-hook 'erlang-mode-hook 'flycheck-mode)
+  )
 
 (defun flycheck-4-elixir ()
   "Flycheck settings for `elixir-mode'."

;; Copyright (C) 2014 Dylan.Wen

;; Author: Dylan.Wen <hhkbp2@gmail.com>
;; Time-stamp: <2016-03-22 16:46>

;; This file is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by


  ;; enable flycheck in specified modes
  (dolist (func '(flycheck-4-elisp
                  flycheck-4-erlang
                  flycheck-4-elixir
                  flycheck-4-python
                  flycheck-4-go
