projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5cbf910
)
[emacs][wip] dired: add b for dired-up-directory
author
Amin Bandali
<bandali@gnu.org>
Mon, 24 Dec 2018 22:34:21 +0000
(17:34 -0500)
committer
Amin Bandali
<bandali@gnu.org>
Mon, 24 Dec 2018 23:08:44 +0000
(18:08 -0500)
init.org
patch
|
blob
|
blame
|
history
diff --git
a/init.org
b/init.org
index
11f45a3
..
9acbd33
100644
(file)
--- a/
init.org
+++ b/
init.org
@@
-1184,6
+1184,7
@@
There's no way I could top that, so I won't attempt to.
;; https://oremacs.com/2017/03/18/dired-ediff/
(defun dired-ediff-files ()
(interactive)
;; https://oremacs.com/2017/03/18/dired-ediff/
(defun dired-ediff-files ()
(interactive)
+ (require 'dired-aux)
(defvar ediff-after-quit-hook-internal)
(let ((files (dired-get-marked-files))
(wnd (current-window-configuration)))
(defvar ediff-after-quit-hook-internal)
(let ((files (dired-get-marked-files))
(wnd (current-window-configuration)))
@@
-1203,6
+1204,7
@@
There's no way I could top that, so I won't attempt to.
(set-window-configuration wnd))))
(error "no more than 2 files should be marked"))))
:bind (:map dired-mode-map
(set-window-configuration wnd))))
(error "no more than 2 files should be marked"))))
:bind (:map dired-mode-map
+ ("b" . dired-up-directory)
("e" . dired-ediff-files)
("E" . dired-toggle-read-only)
("\\" . dired-hide-details-mode)
("e" . dired-ediff-files)
("E" . dired-toggle-read-only)
("\\" . dired-hide-details-mode)