 
 ;; enable extensions to the dired mode
 (add-hook 'dired-load-hook
-	  (function (lambda () (load "dired-x"))))
+  (function (lambda ()
+    (load "dired-x")
+    ; can still use e for the alternate functionality
+    (define-key dired-mode-map (kbd "RET") 'dired-find-alternate-file)
+    (define-key dired-mode-map (kbd "f") 'dired-find-alternate-file)
+    (define-key dired-mode-map (kbd "<mouse-2>") 'dired-find-alternate-file)
+)))
 
 ;; use ibuffer instead of buffermenu
 (global-set-key (kbd "C-x C-b") 'ibuffer)

;; don't create backup files and clutter
(setq auto-save-default nil)

;(setq-default make-backup-files nil)
;; set the cursor type
(setq-default cursor-type '(bar . 1))

        (insert "}")
        (goto-char point-bak)))

(defun mji/scons-git ()
    "Run scons on the current Git repository"
    (interactive)
    (compile "scons -C \"$(git rev-parse --show-toplevel)\""))

(defun mji/scons-git-debug ()
    "Run scons DEBUG=1 on the current Git repository"
    (interactive)
    (compile "scons -C \"$(git rev-parse --show-toplevel)\" DEBUG=1"))

;;
;; Themes
;;
