 (global-set-key (kbd "C-.") (lambda () 
                           (interactive)
                           (other-window -1)))
+;;Indent region
+(global-set-key (kbd "C-M-\\") 'indent-region)
 
 ;; useful comments of debugging
 (defun browse-file-directory ()

(require 'smex)
(smex-initialize)
(global-set-key (kbd "M-x") 'smex)

;; useful shortcuts
(global-set-key (kbd "C-x l") 'electric-buffer-list)

(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/")
