Function: dired-x-bind-find-file
dired-x-bind-find-file is an interactive and byte-compiled function
defined in dired-x.el.gz.
Signature
(dired-x-bind-find-file)
Documentation
Bind dired-x-find-file in place of find-file (or vice-versa).
Similarly for dired-x-find-file-other-window and find-file-other-window.
Binding direction based on dired-x-hands-off-my-keys.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dired-x.el.gz
(defun dired-x-bind-find-file ()
"Bind `dired-x-find-file' in place of `find-file' (or vice-versa).
Similarly for `dired-x-find-file-other-window' and `find-file-other-window'.
Binding direction based on `dired-x-hands-off-my-keys'."
(interactive)
(if (called-interactively-p 'interactive)
(setq dired-x-hands-off-my-keys
(not (y-or-n-p "Bind dired-x-find-file over find-file? "))))
(unless dired-x-hands-off-my-keys
(define-key (current-global-map) [remap find-file]
'dired-x-find-file)
(define-key (current-global-map) [remap find-file-other-window]
'dired-x-find-file-other-window)))