]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
Remove the dired mode-hook; it turned out to be annoying.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 24 Mar 2011 00:50:39 +0000 (20:50 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 24 Mar 2011 00:50:39 +0000 (20:50 -0400)
mode-hooks.el
mode-hooks/dired-mode-hooks.el [deleted file]

index db3f1e70f2c820d2491a1c7452f04a1fa7c2ef25..ef9685e85f17e8145babbef19b20c8774224cbec 100644 (file)
@@ -3,7 +3,6 @@
 (load-library "basic-mode-hooks")
 (load-library "csharp-mode-hooks")
 (load-library "css-mode-hooks")
-(load-library "dired-mode-hooks")
 (load-library "ecmascript-mode-hooks")
 (load-library "erc-mode-hooks")
 (load-library "haskell-mode-hooks")
diff --git a/mode-hooks/dired-mode-hooks.el b/mode-hooks/dired-mode-hooks.el
deleted file mode 100644 (file)
index 80efd0b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-(defun dired-up-directory-in-same-buffer ()
-  ;; Open the parent directory, but do it in the current buffer.
-  (interactive)
-  (find-alternate-file "..")
-)
-
-(defun dm-hook()
-  ;; Redefine some functions so that dired will re-use the current
-  ;; buffer whenever possible.
-  
-  ;; Was dired-advertised-find-file.
-  (define-key dired-mode-map (kbd "<return>") 'dired-find-alternate-file)
-
-  ;; Was dired-up-directory.
-  (define-key dired-mode-map (kbd "^") 'dired-up-directory-in-same-buffer)
-)
-
-(add-hook 'dired-mode-hook (function dm-hook))