     (when (not (package-installed-p pkg))
       (package-install pkg))))
 
+;; Default configuration for auto-complete
+(ac-config-default)
+
+;; Load my default theme
 (load-theme 'cyberpunk t)


(setq package-archive-enable-alist '(("melpa" deft magit)))

;; Make sure default packages are installed
(defun sothr/packages-installed-p ()
  (loop for pkg in sothr/packages
	when (not (package-installed-p pkg)) do (return nil)
	finally (return t)))

(unless (sothr/packages-installed-p)
  (message "%s" "Refreshing package database...")
  (package-refresh-contents)

(defvar sothr/packages '(auto-complete
			 cyberpunk-theme
			 gist
			 magit
			 markdown-mode
			 projectile
			 yaml-mode)
  "Default packages")

