 
 ;; 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))


;; nginx mode.
(defun my-setup-nginx ()
  (mi-use-package-url "nginx-mode.el" "https://raw.github.com/ajc/nginx-mode/master/nginx-mode.el")
  (require 'nginx-mode)
  (setq nginx-indent-level 4)
  (nginx-mode)


;; protobuf
(defun my-setup-pb ()
  (elpa-require 'protobuf-mode)
  (protobuf-mode)
  )
(add-to-list 'auto-mode-alist '("\\.proto\\'" . my-setup-pb))

;; erlang
(defun my-erlang ()
  (elpa-require 'erlang)
  (flycheck-mode)
  (add-to-list 'ac-modes 'erlang-mode)
  (add-to-list 'load-path "~/.emacs.d/lisps/distel/elisp")
