 
 ;; rust-mode
 (when (and (kui/autoload-if-exist 'rust-mode "rust-mode")
-           (kui/package-require 'flycheck-rust nil nil t))
+           (kui/package-require 'flycheck-rust))
 
   ;; flycheck
   (eval-after-load 'flycheck


;; インストールされていないパッケージを require した時に、
;; 自動でインストールしたあとに require してくれる
(defun kui/package-require (feature &optional filename packagename noerror)
  "If PACKAGENAME(or FEATURE) was installed, execute `require' as:

	(require FEATURE &optional FILENAME NOERROR)

If PACKAGENAME(or FEATURE) not installed, execute `package-install' with
PACKAGENAME(or FEATURE) and then execute `require'.
If NOERROR is non-nil, then return nil if PACKAGENAME(or FEATURE) is not
available package."
  (condition-case err
      (let ((pname (or packagename feature)))
        (message "kui/package-require: %s, %s, %s, %s"
                 feature filename packagename noerror)
        (unless (package-installed-p pname) (package-install pname))
        (require feature filename noerror))
    (error (if noerror nil (error (cadr err))))))

(put 'with-pkg 'lisp-indent-function 1)
(defmacro with-pkg (feature &rest args)


;; -------------------------------------------------------------------------
;; 色とか
(with-pkg 'color-theme
  (color-theme-initialize)

  (with-pkg 'color-theme-sanityinc-tomorrow
    (load-theme 'sanityinc-tomorrow-night t)
    (custom-set-faces
     '(highlight
       ((((background dark))
         :upperline t
         :underline t
         :background "#441133")))
     '(hl-line
       ((((background dark))
         :background "#112244")))
     '(show-paren-match
       ((((background dark))
         :inherit nil
         :weight ultra-bold
         :background "#004400"
         :foreground nil))))

    (unless window-system
      (custom-set-faces
       '(mode-line
         ((((background dark))
           :background "#444444")))
       '(highlight
         ((((background dark))
           :background "#262626"
           :inherit nil))))))
  )

(when (featurep 'helm)
  (custom-set-faces
