    '(show-paren-match ((((class color) (background light)) (:background "cyan"))))
    '(trailing-whitespace ((((class color) (background light)) (:background "yellow"))))))
 
+(defvar my-packages
+  '(color-theme color-theme-solarized magit))
+
 (when window-system
   (require 'package)
   (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
   (package-initialize)
+
+  (let ((missing '()))
+    (dolist (p my-packages)
+      (unless (package-installed-p p)
+        (push p missing)))
+    (when missing
+      (package-refresh-contents)
+      (dolist (p missing)
+        (package-install p))))
+
   (load-theme 'solarized-dark t))
+
+(require 'magit)
+(add-hook 'magit-log-edit-mode-hook 'turn-on-auto-fill)
 
 ;; Some Sublime Text-isms:
 

(global-set-key (kbd "C-w") 'other-window)
(global-set-key (kbd "C-z") 'undo)

;; Selection



          (lambda ()
            (define-key dired-mode-map [left] 'dired-up-directory)
            (define-key dired-mode-map [right] 'dired-find-file)))

(defun my-kill-line-or-region (&optional arg)
  (interactive "P")
