   (mapcar
    (lambda (package)
      (if (package-installed-p package)
-	 nil
+     nil
        (if (y-or-n-p (format "Package %s is missing. Install it?" package))
-	   (package-install package)
-	 package)))
+       (package-install package)
+     package)))
    packages))
 
 (or (file-exists-p package-user-dir)


;; Remap org-mode meta keys for convenience
(mapcar (lambda (state)
	  (evil-declare-key state org-mode-map
	    (kbd "M-l") 'org-metaright
	    (kbd "M-h") 'org-metaleft
	    (kbd "M-k") 'org-metaup
	    (kbd "M-j") 'org-metadown
	    (kbd "M-L") 'org-shiftmetaright
	    (kbd "M-H") 'org-shiftmetaleft
	    (kbd "M-K") 'org-shiftmetaup
	    (kbd "M-J") 'org-shiftmetadown))
	'(normal insert))

;;(load-theme 'tango-dark)
(load-theme 'solarized-dark)

(setq custom-file "~/.emacs.d/custom.el")
(load custom-file)

;(setq url-proxy-services
      ;'(("no_proxy" . "^\\(localhost\\|10.*\\)")
        ;("http" . "localhost:3128")
        ;("https" . "localhost:3128")))

(require 'package)

