 ;;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
+
+;; Fix our emacs shell path
+(ensure-package-installed 'exec-path-from-shell)
+(require 'exec-path-from-shell)
+(when (memq window-system '(mac ns))
+  (exec-path-from-shell-initialize))
+
 ;; swap some keys on OS X
 (setq mac-command-modifier 'meta)
 (setq mac-control-modifier 'control)

;; turn of the menu bars
(menu-bar-mode 0)
(if (boundp 'tool-bar-mode) (tool-bar-mode 0))

(show-paren-mode 1)
;; Show matching paren offscreen in the minibuffer


;; refresh package listings
(when (not package-archive-contents)
  (package-refresh-contents))

(defun ensure-package-installed (&rest packages)
  "Assure every package is installed, ask for installation if it’s not.
