 
 ;; apache httpd.
 (defun my-setup-httpd ()
-  (mi-use-package-url "apache-mode.el" "https://raw.githubusercontent.com/wybosys/wybosys/master/el/apache-mode.el")
+  (elpa-require 'apache-mode)
   (apache-mode)
   )
 (add-to-list 'auto-mode-alist '("\\.htaccess\\'"   . my-setup-httpd))


;; protobuf
(defun my-setup-pb ()
  (mi-use-package-url "protobuf-mode.el" "https://raw.githubusercontent.com/wybosys/wybosys/master/el/protobuf-mode.el")
  (protobuf-mode)
  )
(add-to-list 'auto-mode-alist '("\\.proto\\'" . my-setup-pb))

;; erlang
(defun my-erlang ()
  (mi-use-package-url "erlang-start.el" "https://raw.githubusercontent.com/wybosys/el-erlang/master/erlang-start.el")
  (require 'erlang-start)
  (flycheck-mode)
  (add-to-list 'ac-modes 'erlang-mode)
  (add-to-list 'load-path "~/.emacs.d/lisps/distel/elisp")


;; yaml.
(defun my-setup-yaml ()
  (elpa-require 'yaml-mode)
  (yaml-mode)
  )
(add-to-list 'auto-mode-alist '("\\.ya?ml$" . my-setup-yaml))

;; lua.
(defun my-setup-lua ()
  (elpa-require 'lua-mode)
  (lua-mode)
  )
(add-to-list 'auto-mode-alist '("\\.lua$" . my-setup-lua))
