 (setq package-enable-at-startup nil)
 (package-initialize)
 
-;; Packages to use, in rough order of descending importance.
-;flycheck python go go go
+;; Package groups.
+;; Evil first, as it's by far the most important.
 (ensure-package-installed 'evil
                           'evil-leader
-                          'evil-escape ; Escape from anything.
-                          'evil-lisp-state
+                          ;;'evil-lisp-state
                           ;;'evil-cleverparens ; Another lisp mode.
                           ;;'evil-commentary ; Another commenter.
                           ;;'evil-args

(defun ensure-package-installed (&rest packages)
  "Ensure every package in PACKAGES is installed.

  If a package is not installed, try to install it. Returns a list of installed
  packages, or nil if every package is skipped."
  (mapcar
   (lambda (package)
     (if (package-installed-p package)
         nil
       (if (y-or-n-p (format "Package %s is missing. Install it? " package))
         (package-install package)
         package)))
   packages))

                          ;;'flx-*
                          ;;'grizzl
                          ;;'idris-mode
                          ;;'org-projectile, 'org-*
                          )

;; Devops/infrastructure packages.
(ensure-package-installed 'vagrant
                          ;;'vagrant-tramp
                          ;;'docker
                          ;;'dockerfile-mode
                          ;;'docker-tramp
                          )
;; Latex Packages
(ensure-package-installed 'cdlatex
                          'latex-math-preview
                          'latex-pretty-symbols
                          ;;'latex-extra
                          ;;'latex-preview-pane
                          ;;'magic-latex-buffer
                          ;;'math-symbol-lists
                          ;;'px ; inline latex preview
                          )
;; File modes.
(ensure-package-installed 'puppet-mode)

;; Themes. In a different call, b/c they went rogue.
(ensure-package-installed 'ample-theme
                          'zenburn-theme
