 
 ;; Set exec-path from PATH
 (defun set-exec-path-from-PATH ()
+  "Set the 'exec-path' variable to include the $PATH from the shell when in windowed mode."
   (let ((path-from-shell (replace-regexp-in-string
 			  "[ \t\n]*$"
 			  ""

;; Include Marmalade and MELPA repos
(require 'package)
(push '("marmalade" . "http://marmalade-repo.org/packages")

    (setenv "PATH" path-from-shell)
    (setq exec-path (split-string path-from-shell path-separator))))

(when window-system (set-exec-path-from-PATH)) ; Only set the path when run in windowed mode (not necessary in shell)

;; Set default font
(set-face-attribute 'default t :font "Anonymous Pro-12")
