chiark / gitweb /
dot/emacs: Turn on `dired-x' when something starts `dired'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 14 Mar 2013 01:23:30 +0000 (01:23 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 14 Mar 2013 01:23:30 +0000 (01:23 +0000)
It turns out that this is where the `dired-omit-mode' stuff, which I
found once, thought was ace, and then missed in many different Emacsen,
actually comes from.  Win.

dot/emacs

index 68c0068e445e81b115fb26e2802b99534cfc9a84..8b48113e82c69ffc6323e2400dbec853e1779c60 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
      (or (lookup-key dired-mode-map  [?\C-x ?\C-q])
         (define-key dired-mode-map [?\C-x ?\C-q]
           'wdired-change-to-wdired-mode))
+     (trap (require 'dired-x))
      (and (fboundp 'dired-do-relsymlink)
          (define-key dired-mode-map [?\C-c ?\C-s] 'dired-do-relsymlink))))