Slightly better than adding another copy of your custom global anchor to the local mode map, it will remove the local anchor so that it no longer distorts the global anchor. You can also give this function a new key before doing this.
(eval-after-load "dired-x"
'(progn
;; Add an alternative local binding for the command
;; bound to M-o
(define-key dired-mode-map (kbd "C-c o")
(lookup-key dired-mode-map (kbd "M-o")))
;; Unbind M-o from the local keymap
(define-key dired-mode-map (kbd "M-o") nil)))
phils source
share