 
 ;; yaml.
 (defun my-setup-yaml ()
-  (mi-use-package-url "yaml-mode.el" "https://raw.github.com/yoshiki/yaml-mode/master/yaml-mode.el")
+  (elpa-require 'yaml-mode)
   (yaml-mode)
   )
 (add-to-list 'auto-mode-alist '("\\.ya?ml$" . my-setup-yaml))
 
 ;; lua.
 (defun my-setup-lua ()
-  (mi-use-package-url "lua-mode.el" "https://raw.github.com/immerrr/lua-mode/master/lua-mode.el")
+  (elpa-require 'lua-mode)
   (lua-mode)
   )
 (add-to-list 'auto-mode-alist '("\\.lua$" . my-setup-lua))


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


;; nginx mode.
(defun my-setup-nginx ()
  (elpa-require 'nginx-mode)
  (require 'nginx-mode)
  (setq nginx-indent-level 4)
  (nginx-mode)
