 (require 'smex)
 (smex-initialize)
 (global-set-key (kbd "M-x") 'smex)
+
+;; Install use-package.
+(package-initialize)
+(require 'package)
+(add-to-list 'package-archives
+    '("melpa" . "http://melpa.milkbox.net/packages/") t)
 
 ;; useful shortcuts
 (global-set-key (kbd "C-x l") 'electric-buffer-list)

(global-set-key (kbd "C-.") (lambda () 
                          (interactive)
                          (other-window -1)))

;; useful comments of debugging
(defun browse-file-directory ()

(global-set-key (kbd "C-M-u") 'python-compile)
(defun python-compile ()
  (interactive)
  ;;(insert (shell-command-to-string (format "python %s" buffer-file-truename))))
  (message (shell-command-to-string (format "python %s" buffer-file-truename)))
  (switch-to-buffer-other-window "*Messages*")
  (goto-char (point-max)))



;; plugins
(add-to-list 'load-path "~/.emacs.d/plugins/")
