 (defun py-venv-known-names (directory)
   "List `known` virtualenvs names only in DIRECTORY."
   (let* ((dir-name (directory-file-name directory))
-         (full-names 1)
-         (files (directory-files directory full-names))
-         (dirs (remove-if-not #'file-directory-p files))
-         (names (remove-if
-                 #'(lambda (name)
-                     (s-match ".+\\.+$" name)) dirs)))
+	 (full-names 1)
+	 (files (directory-files directory full-names))
+	 (dirs (remove-if-not #'file-directory-p files))
+	 (names (remove-if #'(lambda (name) (s-match ".+\\.+$" name)) dirs)))
     (mapcar #'file-name-base names)))
 
 (defun py-auto-workon-maybe ()
   "Attempt to automatically workon known virtualenvs."
   (require 'pyvenv)
   (let* ((git-remote-name (git-get-current-remote-name))
-         (git-repo-name (or (file-name-base git-remote-name) ""))
-         (venv-names (py-venv-known-names py-workon-home))
-         (venvs-matched (remove-if-not
-                         #'(lambda (venv-name)
-                             (s-contains? git-repo-name venv-name))
-                         venv-names)))
+	 (git-repo-name (or (file-name-base git-remote-name) ""))
+	 (venv-names (py-venv-known-names py-workon-home))
+	 (venvs-matched
+	  (remove-if-not
+	   #'(lambda (venv-name) (s-contains? git-repo-name venv-name))
+	   venv-names)))
     (if (and (> 1 (length venvs-matched)) pyvenv-virtual-env)
-        (pyvenv-deactivate)
+	(pyvenv-deactivate)
       (pyvenv-workon (car venvs-matched)))))
+
 
 (defun py-handle-virtualenvs ()
   "Handle Python virualenvs."

(require 'magit)
(require 'org)
(require 'org-install)
;; (require 'pyvenv)
(require 'python)
(require 'rst)
(require 's)

   ))

(setq-default theme-load-from-file t)
(setq-default theme-default 'solarized-dark)
(menu-bar-mode 1)
(set-fill-column 79)

(defun setup-global-key-bindings ()
  "Setup global key bindings."
  (require 'magit)
  (require 'org)
  (global-set-key (kbd "C-c +") 'text-scale-increase)
  (global-set-key (kbd "C-c -") 'text-scale-decrease)
  (global-set-key (kbd "C-c l") 'org-store-link)
