diff options
Diffstat (limited to 'lisp/dired-x.el')
| -rw-r--r-- | lisp/dired-x.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 915550991d0..1425278bdc9 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -1629,10 +1629,11 @@ Binding direction based on `dired-x-hands-off-my-keys'." | |||
| 1629 | (if (called-interactively-p 'interactive) | 1629 | (if (called-interactively-p 'interactive) |
| 1630 | (setq dired-x-hands-off-my-keys | 1630 | (setq dired-x-hands-off-my-keys |
| 1631 | (not (y-or-n-p "Bind dired-x-find-file over find-file? ")))) | 1631 | (not (y-or-n-p "Bind dired-x-find-file over find-file? ")))) |
| 1632 | (define-key (current-global-map) [remap find-file] | 1632 | (unless dired-x-hands-off-my-keys |
| 1633 | (if (not dired-x-hands-off-my-keys) 'dired-x-find-file)) | 1633 | (define-key (current-global-map) [remap find-file] |
| 1634 | (define-key (current-global-map) [remap find-file-other-window] | 1634 | 'dired-x-find-file) |
| 1635 | (if (not dired-x-hands-off-my-keys) 'dired-x-find-file-other-window))) | 1635 | (define-key (current-global-map) [remap find-file-other-window] |
| 1636 | 'dired-x-find-file-other-window))) | ||
| 1636 | 1637 | ||
| 1637 | ;; Now call it so binding is correct. This could go in the :initialize | 1638 | ;; Now call it so binding is correct. This could go in the :initialize |
| 1638 | ;; slot, but then dired-x-bind-find-file has to be defined before the | 1639 | ;; slot, but then dired-x-bind-find-file has to be defined before the |