 ;; (Cisco Aurora specific)                                                          ;;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
-;; (setenv "PATH"
-;;   (concat
-;;    "/home/wvanders/pkgs/bin" ":"
-;;    (getenv "PATH")))
-
-;; (setenv "LD_LIBRARY_PATH"
-;;   (concat
-;;    "/home/wvanders/pkgs/lib" ":"
-;;    "/home/wvanders/pkgs/lib64" ":"
-;;    (getenv "PATH")))
+(if (file-exists-p "/home/wvanders/pkgs/bin")
+    (progn
+      (setenv "PATH"
+              (concat
+               "/home/wvanders/pkgs/bin" ":"
+               (getenv "PATH"))))
+  
+  (setenv "LD_LIBRARY_PATH"
+          (concat
+           "/home/wvanders/pkgs/lib" ":"
+           "/home/wvanders/pkgs/lib64" ":"
+           (getenv "LD_LIBRARY_PATH"))))
+
+;; Use MingW64 if available
+
+(if (file-exists-p "C:\\msys64")
+    (setenv "PATH"
+            (concat
+             "C:\\msys64\\usr\\bin" ";"
+             "C:\\msys64\\mingw32\\bin" ";"
+             "C:\\msys64\\mingw64\\bin" ";"
+             (getenv "PATH"))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;
 ;; Utility functions ;;

;; Dylan stuff ;;
;;;;;;;;;;;;;;;;;

(add-to-list 'load-path "~/.emacs.d/dylan-mode")
(require 'dime)

;;;;;;;;;;;;;;;;;;
;; Rust support ;;

;;(setenv "PYTHONHOME" "~/.elpy-libraries/easy_install")

(elpy-enable)
(condition-case nil
    (if (file-exists-p "~/.elpy-virtualenv")
        (pyvenv-activate "~/.elpy-virtualenv")
      (warn "No virtualenv found at ~/.elpy-virtualenv"))
  (error "Failed to init elpy virtualenv"))

;;;;;;;;;;;;;;;
;; Lua stuff ;;
