                      (set (make-variable-buffer-local 'ruby-end-check-statement-modifiers) nil)
                      (ruby-end-mode +1))))))
 
-(defun spacemacs/init-erlang ()
+(defun erlang-elixir/init-erlang ()
   (use-package erlang
     :mode (("\\.erl?$" . erlang-mode)
            ("\\.hrl?$" . erlang-mode)

        "mm" 'edts-find-macro-source
        "mr" 'edts-find-record-source))))

(defun spacemacs/init-flycheck ()
  (add-hook 'elixir-mode-hook 'flycheck-mode))

(defun spacemacs/init-git-gutter-fringe ()
  (add-hook 'erlang-mode-hook 'git-gutter-mode))

(defun spacemacs/init-rainbow-delimiters ()
  (add-hook 'erlang-mode-hook 'turn-on-rainbow-delimiters-mode))

(defun spacemacs/init-ruby-end ()
  (use-package ruby-end
    :defer t
    :config (spacemacs//hide-lighter ruby-end-mode)))

(defun spacemacs/init-smartparens ()
  (add-hook 'erlang-mode-hook 'smartparens-mode))

(defun spacemacs/init-yasnippet ()
  (add-hook 'erlang-mode-hook 'spacemacs/load-yasnippet))

(defvar erlang-elixir-excluded-packages '()
  "List of packages to exclude.")

(defun erlang-elixir/init-auto-complete ()
  (add-hook 'erlang-mode-hook 'auto-complete-mode))

(defun erlang-elixir/init-auto-highlight-symbol ()
  (add-hook 'erlang-mode-hook 'auto-highlight-symbol-mode))

(defun erlang-elixir/init-elixir-mix ()
  (use-package elixir-mix
    :defer t
    :init
    (global-elixir-mix-mode)))

(defun erlang-elixir/init-elixir-mode ()
  (use-package elixir-mode
    :defer t
    :config
