 
 ;;GO MODE
 (setq gofmt-command "goimports")
+(setq go-path (getenv "GOPATH"))
 (require 'go-mode)
 (add-hook 'before-save-hook 'gofmt-before-save)
-(setenv "PATH" "/Users/warren/.cabal/bin:/Applications/ghc-7.8.3.app/Contents/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/go/bin:/Users/warren/.rvm/bin:/Users/warren/workbench/go/bin:/Users/warren/bin")
-(setenv "GOPATH" "/Users/warren/workbench/go")
-
-(load-file "$GOPATH/src/golang.org/x/tools/cmd/oracle/oracle.el")
-(setq go-oracle-command "/Users/warren/workbench/go/bin/oracle")
-(go-oracle-mode)
-
-      
+(message (getenv "PATH"))
+(load-file (concat go-path "/src/golang.org/x/tools/cmd/oracle/oracle.el"))
+(setq go-oracle-command (concat go-path "/bin/oracle"))
+;; Go autocomplete (needed for go-eldoc)      
 (require 'auto-complete)
 (require 'go-autocomplete)
 (require 'auto-complete-config)
 ;;(ac-config-default)
 (define-key ac-mode-map (kbd "M-TAB") 'auto-complete)
-
 (require 'go-eldoc)
 (add-hook 'go-mode-hook 'go-eldoc-setup)
 
 
 
-;;Mac command modifier
-(setq mac-command-modifier 'control)
-;;Mac Paths
-(when (memq window-system '(mac ns))
-  (let ()
-    (setq-default default-directory "/Users/warren")
-    (exec-path-from-shell-initialize)
-    (exec-path-from-shell-copy-env "GOPATH")
-    )
-  )
-
-(put 'narrow-to-region 'disabled nil)
+
 ;; Full screen
 (toggle-frame-fullscreen)
-
-;; ;; Auto Dim non-current buffers
-;; (auto-dim-other-buffers-mode t)
-;; ;; Disable Easy Keys
-;; (require 'no-easy-keys)
-;; (no-easy-keys 1)
-
 
 ;; Org Mode
 (setq org-enforce-todo-dependencies t)

                           ("marmalade" . "http://marmalade-repo.org/packages/")
                           ("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)

;;Color-themes
;;(require 'color-theme)

 'org-babel-load-languages
 '((emacs-lisp . t)
   (sh . t)))
(setq org-src-fontify-natively t)

;;;; Appointments
