 ;;; this custom-file (i.e. do not load it)
 (setq custom-file "~/.emacs-custom-ignored.el")
 
-(setc custom-safe-themes
-                        '("c74e83f8aa4c78a121b52146eadb792c9facc5b1f02c917e3dbb454fca931223"
-                          "9be1d34d961a40d94ef94d0d08a364c3d27201f3c98c9d38e36f10588469ea57"
-                          default))
+(custom custom-safe-themes
+        '("c74e83f8aa4c78a121b52146eadb792c9facc5b1f02c917e3dbb454fca931223"
+          "9be1d34d961a40d94ef94d0d08a364c3d27201f3c98c9d38e36f10588469ea57"
+          default))
 
 ;;; * packages
+
+(use-package auto-package-update
+  :custom
+  (auto-package-update-delete-old-versions t)
+  (auto-package-update-hide-results t)
+  :config
+  (auto-package-update-maybe))
 
 (use-package base16-theme
   :config

(use-package js2-mode
  :mode "\\.js\\'"
  :interpreter "node"
  :config
  (setc js-indent-level 2)
  (setc js2-strict-missing-semi-warning nil))

(use-package rjsx-mode
  :mode "\\.jsx\\'")

(use-package company
 :demand t
 :bind (:map
        company-active-map
        ("<return>" . nil)
        ("RET" . nil)
        ("<C-return>" . company-complete-selection)
        ("<tab>" . nil)
        ("TAB" . nil)
        ("<C-tab>" . company-complete-common-or-cycle))
 :config
 (setc company-idle-delay 0.1)
 (setc company-minimum-prefix-length 1)
 (global-company-mode))

(use-package yasnippet
  :config

;;; * package.el

(require 'package)
(custom package-enable-at-startup nil)
(package-initialize t)

(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
