From 7df8a490816d54f7d87638bd4ec17f04f86d86ab Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 23 Mar 2011 20:50:39 -0400 Subject: [PATCH] Remove the dired mode-hook; it turned out to be annoying. --- mode-hooks.el | 1 - mode-hooks/dired-mode-hooks.el | 18 ------------------ 2 files changed, 19 deletions(-) delete mode 100644 mode-hooks/dired-mode-hooks.el diff --git a/mode-hooks.el b/mode-hooks.el index db3f1e7..ef9685e 100644 --- a/mode-hooks.el +++ b/mode-hooks.el @@ -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 index 80efd0b..0000000 --- a/mode-hooks/dired-mode-hooks.el +++ /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 "") '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)) -- 2.44.2