-; EMACS conf
+;;; EMACS conf
 
-(add-to-list 'load-path "~/.emacs.d/")
+(add-to-list 'load-path (expand-file-name "~/.emacs.d/elpa") t)
+
+;;; Melpa repo
+(require 'package)
+(package-initialize)
+(add-to-list 'package-archives
+             '("melpa" . "http://melpa.milkbox.net/packages/")t)
+
+;; Magic auto pep8 on saving
+(require 'py-autopep8)
+(setq py-autopep8-options '("--max-line-length=100"))
+(add-hook 'python-mode-hook 'py-autopep8-enable-on-save)
+
+;;; Theme
+(require 'color-theme)
+(color-theme-initialize)
+(color-theme-deep-blue)
 
 ;;; Yaml mode
 (require 'yaml-mode)

;; Whitespace killah
(setq-default indicate-empty-lines t)
(setq-default indicate-unused-lines t)

(custom-set-variables
 ;; custom-set-variables was added by Custom.

(require 'slime-autoloads)
(setq inferior-lisp-program "/usr/bin/sbcl")
(setq slime-contribs '(slime-fancy))

;;; Line numbers
(global-linum-mode t)
