chiark / gitweb /
dot/emacs: Make C-x C-q do editable-Dired.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 17 Oct 2009 23:52:25 +0000 (00:52 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 17 Oct 2009 23:52:25 +0000 (00:52 +0100)
Apparently this is built into later Emacsen.  It seems sane.

dot/emacs

index fe5b563333e847c561f2288702411ef1d7b76e96..c9884ce8dab0b24cc7e0d606fa7891ffba614127 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (and (not mdw-fast-startup) (fboundp 'hippie-expand)
      (global-set-key [?\M-/] 'hippie-expand))
 
+(eval-after-load "dired"
+  '(progn
+     (define-key dired-mode-map [?\C-x ?\C-q]
+       'wdired-change-to-wdired-mode)))
+
 (add-hook 'org-mode-hook
          #'(lambda () (mdw-clobber-evil-keymap org-mode-map)))
 (add-hook 'org-agenda-mode-hook